Custom CSS file styles not applying
-
Using the premium version of print friendly.
Added custom printfriendly.css stylesheet to root of my website theme.
When searching the source code I find the file but the styles are not being applied.
I added the correct path w/in setting (pasting the path in the URL brings up the stylesheet so I know it’s there and readable).
Stylesheet:
/* * Print Friendly PDF plugin specific styles * */ // hide sub title link #printfriendly #pf-src { display:none; }
The selector is correct, when adding via inspector it removed pf-src as expected.
The JS
pfCustomCSS
variable is set to the correct URL.The correct CSS <link> element shows in the iFrame’s body when pulling up the PDF and is set to the correct URL.
Dotted line and Page URL under the PDF title still show! Please help, thanks!
- This topic was modified 7 years, 2 months ago by . Reason: Fix file name printfriend.css to printfriendly.css
- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by .
- This topic was modified 7 years, 2 months ago by . Reason: More debug info
- The topic ‘Custom CSS file styles not applying’ is closed to new replies.