• Resolved Lea

    (@leac)


    I don’t know if you really have to address this, but still thought it might be good to be aware of this: In the theme customization screen I inserted custom CSS that styles one of my pages’ content. But that style doesn’t affect the printed version.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    How did you add the custom CSS? It sounds like that CSS is meant to only get applied on that specific page, and technically the print page is different, and so it’s not being included.

    I had a similar issue with some special JetPack galleries, their CSS wouldn’t get included. The fix was I needed to specifically instruct the code to include them on the print page.

    Thread Starter Lea

    (@leac)

    No, I didn’t target a specific page. I actually created a div with a specific class in the post content, and I targeted the class in the CSS.
    The CSS is located under Theme -> Customize -> Custom Css

    Plugin Author Michael Nelson

    (@mnelson4)

    Ok thanks.
    I added some custom CSS there too and found it’s getting applied ok.

    Eg I added

    
    h1{
    	font-style:italic;
    }
    h2{
    	font-style:italic;
    }
    

    And found the print page’s h1 and h2 headers are now all in italic, as hoped for.

    So custom CSS seems to be getting loaded ok.

    So I’m suspicious the print page’s CSS classes are setup differently than on individual pages. So the custom CSS you have might not just be working on the print page.

    Would you mind sharing the exact custom CSS you’re using? That would help me identify what the issue is.

    Thread Starter Lea

    (@leac)

    I’m sorry, you’re right. There was one style that was defined per that page and that’s what wasn’t showing. All the rest is displayed as defined, so no problem there.
    Thank you for your help.

    Plugin Author Michael Nelson

    (@mnelson4)

    Great. I’m glad you brought up theme’s custom CSS. It might be handy to make a tutorial on how to use that for this plugin. Someday…

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