• Resolved connor212

    (@connor212)


    I'm adding custom CSS via the plugins custom CSS input but none of the changes are applied to the PDF preview. Am I doing something wrong with my CSS selectors? 
    
    CSS I'm using:
    
    
    
    @media print {
    @page {
    margin: 5mm !important;
    }
    }
    
    @media print {
    
    #printfriendly #pf-content .blockImage{
    
    width:150px !important;
    }
    }
    
    #printfriendly #pf-content .blockImage{
    
    width:150px !important;
    }
    
    #pfcom-print #pf-content .blockImage{
    
    width:150px !important;
    }

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Hi,

    The custom CSS URL is not available – https://redstagtimberlab.co.nz/wp-content/uploads/printfriendly_1671153608.css

    Do you have some firewall setting blocking this?

    Thread Starter connor212

    (@connor212)

    I’ve tried this with Wordfence disabled and the custom CSS input still does nothing. Tried it on my local so I know there’s no server security that might be blocking it and it still doesn’t work

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Custom CSS will not work for the local server for PDF as PDF is generated in our server and it needs access to the CSS file. It will work for Print.

    As I said earlier, the URL is not accessible to our server. You may be able to check it by opening it an incognito browser window.

    If you are comfortable with editing template, I can provide you a solution or we will be releasing our next version this week which will provide a way to fix this without editing template.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom CSS not working’ is closed to new replies.