Closed (fixed)
Project:
PrintFriendly & PDF
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Dec 2014 at 06:22 UTC
Updated:
21 Nov 2017 at 18:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
broonLooking 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.
Comment #2
webmetod commentedSimply 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.
Comment #3
joco_sp commentedThe comment #1 worked.
I assume that also the #2, but I didn't try it.
Comment #4
pinueve commented+1 #1 patch, thanks Paul Broon
Comment #5
RAWDESK commentedThis 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...
Comment #6
RAWDESK commented