• Resolved arvidottosson

    (@arvidottosson)


    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.

    • This topic was modified 6 years, 7 months ago by arvidottosson.
Viewing 1 replies (of 1 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @arvidottosson,

    Thank you for your inquiry and I am happy to assist you with this.
    Go to Performance>Minify, advanced sub-box. There you will find “Never minify the following CSS files:” tex-area.
    Use relative paths. Omit: protocol, hostname, leading forward slash and query strings.
    I hope this helps.

Viewing 1 replies (of 1 total)

The topic ‘Exclude certain CSS file from minification process?’ is closed to new replies.