WP Rocket Remove Unused CSS affecting the styling of buttons
-
Hello, When i activate WP Rocket’s Remove Unused CSS, the styling of the buttons gets affecting and the lose their padding and curved edges. Also, the logo disappears. Is this something you solved in the past? If yes, please let me know the code for the file i need to exclude in WP Rocket. This feature is currently not active on my site.
Attachments:
You must be
logged in to view attached files.
Hello,
This is not a known issue with WoodMart itself. However, the Remove Unused CSS feature can strip dynamic and conditionally loaded styles used by WoodMart (buttons, search, popups) when its Used CSS is regenerated. For this reason, we usually don’t recommend enabling this feature on complex WooCommerce setups. Unfortunately, there is no universal list of CSS files or selectors that can be excluded to resolve this for every website.
Best Regards