Exclude certain CSS file from minification process?
-
Hi,
Minifying causes our Woocommerce single product page to change layout.
I spoke with GeneratePress (the theme we’re using) about this and they suggested the following:
“Is there an option to exclude certain CSS files in W3? If so, you could try excluding that mobile file from the minification process.
wp-content/plugins/gp-premium/woocommerce/functions/css/woocommerce-mobile.min.css
—
The issue is that CSS is meant for mobile only. We use a media query in the CSS file request, instead of inside the actual file. It might be worth asking W3 Total Cache support if there’s a way to make sure their plugin respects that media query during the minification process.
“Thanks in advance for any help in this matter.
The minification is disabled right now.
The topic ‘Exclude certain CSS file from minification process?’ is closed to new replies.