Aggregating CSS adds new CSS that doesn’t exist in my code
-
When I enable the ‘Also aggregate inline CSS?’ option, the Autoptimize plugin adds new CSS that doesn’t exist in any of my files or pages. In one case, it adds a border-bottom to most links even when I have explicitly set those links to border-bottom:none. In another case, it removes the margin-bottom from every Elementor element by creating a new line of code that includes “.elementor-widget:not(:last-child) {margin-block-end: 0px;}”, which is overwriting the original line of CSS, “.elementor-widget:not(:last-child) {margin-bottom: 20px;}”. This is changing how my entire website looks, even though the Autoptimize CSS is not more specific than the original CSS. Why is the plugin creating new CSS that overwrites my theme or my custom CSS? In both of the examples, the Autoptimize plugin has copied the same exact classes/IDs from the original CSS but changes or adds new styles that ends up overwriting the real CSS. I would like to keep this option enabled because it seems to significantly reduce the number of lines of code on the site, but I shouldn’t have to audit every element on the site to check to see if the plugin is changing it’s CSS. Please advise.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.