• 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)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @adil1641
    I am sorry about the issue you are having and I am happy to assist you with this.
    Have you enabled the AMP extension in Performance>Extensions, saved all settings and purged cache?

    Thread Starter adil1641

    (@adil1641)

    https://creativesystems.0438cfd.netsolhost.com/category/creativesystem-blog/?amp
    This is the link.
    I have enabled the extension.
    Are you saying that by doing this both plugin conflict will remove?

    • This reply was modified 5 years ago by adil1641.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @adil1641

    Yes, that is the idea behind the AMP extension in W3 Total Cache. Are you still experiencing the same issue after enabling the AMP extension?

    Thread Starter adil1641

    (@adil1641)

    Hi @vmarko , Currently there is no issue after enabling amp extension.
    I have one question more. After enabling this extension, minified css and js filter will work for non-amp version or not?
    Please guide me about this one

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @adil1641

    Glad to hear that. AMP extension adds compatibility for accelerated mobile pages (AMP) to minify.
    Non-amp version is not affected by this.

    Thread Starter adil1641

    (@adil1641)

    Hi @vmarko , One more thing currently facebook pixel code and google optimizer is removed in amp version. Why it is removed. It is necessary for website. Please see source code of both amp and non-amp versions.

    https://creativesystems.0438cfd.netsolhost.com/?amp
    https://creativesystems.0438cfd.netsolhost.com/

    Please guide me about this one

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @adil1641

    Does the issue persist if you disable W3 Total Cache? ANd ALso I am seeing that you are using Another caching solution. This can cause major issues and conflict.

    Thread Starter adil1641

    (@adil1641)

    i think it is because of amp and w3 total cache plugin.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @adil1641

    To confirm this, please disable W3 Total Cache and see if the issue persists.
    Again I am seeing that you are using older W3 Total Cache version 0.9.7.3 so you should upgrade t the latest version. And please do not use more than one casting solution on your wp install. We can not guarantee that W3 Total Cache will work as expected if there is another caching plugin installed.

    Thread Starter adil1641

    (@adil1641)

    When I update it to latest version, It gives 500 server error when i updated it to 0.9.7.8 thats why i am not updating. Please guide me if this error does not appear again then i will update it.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @adil1641

    version 0.10.1 is out for 3 months now!

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.