Support » Plugin: W3 Total Cache » Conflict of minification of w3 total cache plugin with amp plugin

  • Resolved adil1641

    (@adil1641)


    Hi, I have one question. I have installed both W3 total cache and AMP plugin. There is one conflict with minified css and js filter. Currently Amp plugin has own minified css and js filter. That is creating the conflict with W3 total cache plugin. Can you please provide the code so that w3 total cache plugin css and js minification will applied only for non-amp version and will remove this plugin css and js minification for amp version.

    Like this one. This sample code is given by amp plugin support and they said that i have to contact W3 total cache plugin support for this issue.

    add_filter( ‘w3tc_js_minify_enabled’, function( $enabled ) {
    if ( function_exists( ‘is_amp_endpoint’ ) && is_amp_endpoint() ) {
    $enabled = false;
    }
    return $enabled;
    } );

    Please guide me so that this issue will resolve.

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Conflict of minification of w3 total cache plugin with amp plugin’ is closed to new replies.