• Resolved Justa Mia

    (@y2kpeanut17)


    I’m trying to create a separate lazyblocks stylesheet that will only be loaded if the post contains a lazy block. I don’t want to put the styles in my main CSS as they won’t be needed on the majority of pages. I also don’t want to inline them because some blocks will be used 10x (or more) on the same page.

    Could you suggest a sample hook snippet to enqueue a stylesheet only on pages were a lazy block is used?

    P.S. I want to thank you for your tremendous contribution to the WP community. This plugin, Ghost Kit and DocPress are all excellent (and much needed) plugins. Thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to enqueue a stylesheet if post contains ANY lazy block’ is closed to new replies.