Plugin Support
Elvin
(@ejcabquina)
Hi,
Your CSS code seems fine.
I see your site is using a caching plugin.
Can you purge cache or temporarily disable the caching plugin(autoptimize) and check if it works? Perhaps this is a simple caching issue.
Also, can you explain how you’ve added the CSS? perhaps you’ve added the CSS on a page specific Simple CSS code area. Doing this will mean the CSS will only apply on the page you’ve placed it to.
pro-tip; you can disable Autoptimize on a per-request basis by adding ?ao_noptimize=1 to the URL.
if the problem is not there at that point, some autoptimize (re-)configuration might be needed to fix this. there are troubleshooting tips and info on how to exclude in the AO FAQ.
hope this helps debugging,
frank (ao dev)
Thread Starter
hbmacp
(@hbmacp)
Thanks for the suggestions. The problem was not the cache (good suggestion but I had already tried to see if that was the problem). It turns out that the placement of the CSS code was faulty. I moved it to Additional CSS from Simple CSS under Customize and that did the trick. I will need to figure out what the difference is between the two. Any thoughts about the difference in scope or purpose is between the two?
Well, one difference is that Autoptimize aggregates & minifies “customize -> additional CSS” as that is inlined, whereas the CSS added by simpleCSS (if I remember correcty) is served by PHP-code, which AO cannot be leave untouched.
Plugin Support
Elvin
(@ejcabquina)
@hbmacp
I moved it to Additional CSS from Simple CSS under Customize and that did the trick. I will need to figure out what the difference is between the two. Any thoughts about the difference in scope or purpose is between the two?
Simple CSS appears on multiple parts of the site. There’s one on the dashboard, and another on the edit post/page.
The one on the dashboard (and customizer) applies site wide. It’s supposed to work exactly the same way as if you’re adding CSS on Appearance > Customize > Additional CSS.
The one on the edit page/post is page/post specific, meaning the CSS you add there only applies to that specific page/post. If you don’t need this, I believe you can just remove the plugin and apply your CSS on the customizer’s Additional CSS.
@optimizingmatters Thanks for sharing! 🙂