• Resolved brucedwilliams

    (@brucedwilliams)


    It looks like the “Minify” portion of W3 Total Cache is blocking/modifying something such that WP Store Locator no longer works. Anyone have any idea what that might be? Is there an exclusion that can be include in the W3 Total Cache “Minify” settings to prevent this?

    Any help appreciated!

    Using WP 4.3.1, W3 Total Cache 0.9.4.1 and WP Store Locator 2.0.1.

    https://www.ads-software.com/plugins/wp-store-locator/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tijmen Smit

    (@tijmensmit)

    There is an easy and a hard solution for this problem.

    The easy solution is to just go to Minify -> Advanced -> Never minify the following pages, and fill in the page you don’t want to have minified. So if your store locator is used on mydomain.com/store-locator, then fill in ‘store-locator’.

    You also try to add ‘wpsl-gmap.min.js and
    wpsl-gmap.js’ to the ‘Never minify the following JS files’ section on the Minify -> Advanced page, and see if that fixes it.

    The other solution, and this is more work, is to first go to General Settings -> Minify, and set the minify mode to ‘Manual’ instead of ‘Auto’. Then go to Minify -> JS, and add the js scripts one by one that are used on your site, except the js files from the store locator.

    You can find the js scripts used on your site by pressing ctrl+u, or right mouse click > view source.

    This option does give you full control over which scripts are minified, but it’s also more time consuming, and it can take a while before you get it right.

    Also make sure that on the Minify -> HTML & XML -> HTML minify settings the ‘Inline JS minification’ is not enabled.

    Let me know if one of the solutions fixes it for you.

    Thread Starter brucedwilliams

    (@brucedwilliams)

    Adding the js files to the minify exclusion did not work, however adding the page to the minify exclusion did.

    Thanks for the quick response!

    Thanks for sticking this to the top of the support forum!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3 Total Cache’ is closed to new replies.