• Resolved ___ripa___

    (@ripa01)


    Good morning,
    i’m in trouble, i downloaded the W3 total cache to speed up my website, but when i activate the minify function, woocommerce page will break. In the plugin is possible to deactive the minify function for specified page or selected JS or CSS files.
    I have a grid of products in lot of page, and i prefer to block directly the minify of JS and CSS files of wc that will generate error.
    Exemple: my product page with 4 columns is always shown as 2 columns or my cart is totally break, i could block the minify of that page, but i think is better block all intrested code.
    What css and Js file i have to block to keep both plugins work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ripa01

    Thank you for reaching out.
    Yes, there are options to exclude a specific page from minifying and to exclude specific files from being minified.
    However, you need to determine first which setting might be causing this.
    So, disable the settings in Performance>minify one by one (HTML minify, JS minify, CSS minify) and see which one might be causing the issue.
    Make sure to save all settings and purge the cache after each option is disabled.
    Once you find which setting is causing this, you can move on. If the issue is with the HTML minify, the only option is to exclude the page from being minified in Performance>Minify>Advanced>Never Minify Following Pages by adding the page fr example:
    /example-of-the-page/
    save all settings and purge the cache. The other option is to disable HTML entirely or try switching the HTML minifier in Performance>General Settings to HTML Tidy instead of Minify (default)
    Now, if the problem is with the CSS minify then you can also exclude the specific page from being minified as suggested above or exclude a specific CSS file in Performance>Minify>Advanced>Never Minify Following CSS files
    I can’t really specify which file as every website is different and potentially it’s not a Woocommerce file. so you should check which files are loaded on the page when minify is not enabled and add the files one by one to exclusion for example:
    /wp-content/themes/some-theme/assets/css/some-css-file.css

    If by any chance the problem is with the JS minify, the procedure is the same as for the CSS.

    I hope this helps!
    Thanks!

    Thread Starter ___ripa___

    (@ripa01)

    The problem was for on woocommerce css files, thank you for your tip, it really help me.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ripa01

    You are most welcome!
    We would really appreciate it if you could take a minute and post a review?here. This will help us to continue offering a top-notch product to users.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3 Total cache conflict, disable all Woocommerce CSS files from minify’ is closed to new replies.