• Resolved Christina

    (@carasmo)


    I’m trying to figure out where to include critical inline styles on pages that have popups. Is there an action hook that is in the wp_head that checks for a popup on that page? I’ve removed all other css and themes via your settings. We’re just using the content block one.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Sarai Acevedo

    (@sarai1)

    Hello Christina,

    Thanks for reaching out.

    You should be able to add your styles to your theme’s style sheet. Here’s some helpful information about this.

    Feel free to reach out if you have any more questions.

    Thread Starter Christina

    (@carasmo)

    Yes, but I only want to load my styles on pages that have popups, not for the entire site. I can’t tell what page has a pop up or not via php, but I see that your css only loads on those pages, so I’m asking where is the action hook to do this with the custom styles.

    Plugin Support Kim L

    (@kimmyx)

    Hi @carasmo,

    The plugin checks if a page has a popup and will only load the relevant resources once it does, so you can safely add your custom styles on your theme without it affecting other elements of your site as long as you use the correct selectors.

    Hope that helps. Let us know if you have other questions. 🙏

    Thread Starter Christina

    (@carasmo)

    Oh well, I guess I’m not explaining this correctly. How can I only load my css when there’s a popup? Is there an action hook that I can use, otherwise I don’t know where a client will add a popup so I’m loaded unnecessary CSS on the entire site.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What hook to include critical css?’ is closed to new replies.