WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Print Friendly and PDF Button] Custom CSS not working

[Resolved] [Plugin: Print Friendly and PDF Button] Custom CSS not working

  • Hello. I have created my custom CSS to float the image to the left instead of center and also to add a width of 60% to shrink the image down. This however is not working. The css to hide the page title and source url is however working so I know it’s reading the css file.

    I used the code from your site and even included !important. Can you please help?

    I’d like to make the image smaller and float left.

    /* This will align images to the left */
    
    #printfriendly img{
        float:left;!important
        margin-top: 12px;
        margin-right: 12px;
    	width:60%;!important
    }
Viewing 5 replies - 1 through 5 (of 5 total)
  • First of all, the “!important” declaration needs to be before the semi colon – “float: left !important;”
    Secondly, I’m not sure which part you are trying to style, but the plugin markup is in 2 nested iframes and the custom css file will only be included in the innermost iframe.

    First of all, I’m just following their instructions as they provided where they put !important outside of the semi colon.
    Secondly, again per their instructions this is placed in it’s own style sheet called printfriendly.css.
    Thirdly, thanks for being abrasive and a douche in a 2 month old thread.

    Did you ever get this solved? I am trying to use the custom css as well and just add a height and width to the image. It does not seem to be calling the css file. I like the plugin but support for it is silly.

    Thanks for any information

    Hello,

    I am running into the same issue. Neither my images nor my custom css is being included on the PDF, even if this works like a charm if I print.

    How did you solve this please ?

    Thanks

    Unfortunately no.. To be honest as great as these plugins are, the end result is that they wither and die eventually.. Just do yourself a favor. Learn how to create a print.css yourself and if someone clicks on the page or in the browser and wants to print your page it will always be correct and compliant. Don’t waste your time on plugins that usually end up not being updated and are a security risk at some point. Do the work yourself and keep the amount of plugins you use to a minimum, as little as possible..

    http://www.smashingmagazine.com/2011/11/24/how-to-set-up-a-print-style-sheet/

    Good luck

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Print Friendly and PDF Button] Custom CSS not working’ is closed to new replies.
Skip to toolbar