How do I add custom css to change the look and feel of PDF generated by this module

CommentFileSizeAuthor
#1 printfriendly-2392157-1.patch931 bytesbroon

Comments

broon’s picture

Component: Documentation » Code
Category: Support request » Feature request
StatusFileSize
new931 bytes

Looking through the examples provided for Wordpress and other blogs and the current code, I found you just need to declare the "pfCustomCSS" variable. However, the Drupal module doesn't bother with that one, so it's a feature request now.

I wrote a small patch, which looks for a file named printfriendly.css inside the current theme's css folder. If the file exists, the custom var will be set and the CSS used for the print layout (currently only works with the popup version).

The patch could of course be extended to provide an admin option to set the CSS file's location and name.

webmetod’s picture

Simply get the code, specifying the path to the file with the styles and place it in the block: http://www.printfriendly.com/button
It is more convenient than using a module for me.

joco_sp’s picture

The comment #1 worked.

I assume that also the #2, but I didn't try it.

pinueve’s picture

+1 #1 patch, thanks Paul Broon

RAWDESK’s picture

This issues can be closed since this functionality has been committed to 7.x-5.1 version.
Operational at http://meeus-vastgoed.be/vastgoed/nieuwbouw-woning-te-olen-op-zeer-goede...

RAWDESK’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.