Wordpress LScache Plugin: CSS combine issue
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi. I have my themes custom CSS enqueued in a plugin with a later priority so it loads after the theme. But the combining feature loads some of the themes CSS in a way that the parent CSS overwrites the CSS enqueued in the plugin. Is there a way to rectify this? Is the custom CSS an inline CSS? If so, our next commit will fix it. I am working on https://wordpress.org/support/topic/empty-style-blocks-and-critical-path-css/page/2/#post-13389919 No! It is an external CSS file enqueued using wp_enqueue_style. Load after theme wont affect the CSS optimization as LSCWPs page optm is in the end when outputting the buffer to browser. Can you give a short code example to show the issue? The next commit may still help. It will come after couple days. The theme has some styles and white background and padding all over the content. It also defines those styles for mobile using a media query. I have applied the same code in my custom plugin removing the white background and the padding. But on combining CSS, the background colour in the theme takes precedence and the padding is restored on responsive devices, thereby overwriting my CSS. It was also breaking my menu colours but I found specific CSS classes to apply, but these latter cases mentioned dont take into consideration how specific the CSS is in my custom CSS?they still are overwritten by the theme. Please try v3.4.3-rc4 from Toolbox -> beta test. It fixed the original css priority issue in CSS Combine feature. Let me know if still have the issue. Thanks. @hailite awesome! The issue seems to be fixed now. I will try to refine my CSS and report back if any other issues arise. Thanks for your assistance.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference