Exclude a Single Page from Inline & Defer CSS
-
Hello, relative CSS newbie here so apologies in advance if this is an easy question. I’m using the Divi theme along with Autoptimize’s Inline & Defer CSS option. Just on the blog posts page of my site (link included), this option is causing weird things to happen. It has something to do with the Salvatorre JS function that Divi runs in its Blog Module. At first, the content was not displaying at all on first page load, but I corrected that with the following CSS fix from a previous support post that I found (thank you Frank):
.et_pb_blog_grid .et_pb_salvattore_content[data-columns] .et_pb_post{opacity:1 !important;}
Although this solved the display issue, now there is another issue where on the first page load, the grid displays one single column instead of three, resulting in ugly oversized blog post blurbs. Although there may be another way to correct this using CSS, I’m thinking the easiest option in my case would be just to exclude this one page from the Inline & Defer CSS option. Is there a line I can add to the Critical CSS to accomplish this?
I am aware of how to retrieve a page’s post-ID number in WP, which I assume would be necessary to target the page.
Thank you in advance for any help.
The page I need help with: [log in to see the link]
The topic ‘Exclude a Single Page from Inline & Defer CSS’ is closed to new replies.