Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Harish Madaan

    (@harish-madaan)

    Please Reply ASAP.

    Thanks…

    Have you updated to 0.3? Do you see any errors in your PHP error log?

    Thread Starter Harish Madaan

    (@harish-madaan)

    Hello Mohammad,

    Thanks for your reply!
    I was using old version but now it’s working by APM Project Plugin. Now in mobile it’s not adding /amp/ automatically with posts. How I solve this auto amp/ issue on mobiles.

    Thanks…

    The plugin is not meant to redirect mobile visitors; it just generates AMP content. Please see “Note #2” here: https://github.com/Automattic/amp-wp/blob/master/readme.md#overview

    Hi!

    Thanks for your great job!

    Sorry but if i try to see with a Galaxy Note 3 (Android device) the AMP version of my web site, there are only blank pages.

    I install your last version of the plugin, the 0.3.

    It’s possibile that the problem is on my template? Or it’s a new plugin’s bug?

    Thank You so much.

    Something on your site (maybe another plugin?) is adding extra content and breaking the output of the main AMP script (and also breaking the page):

    <script src="https://cdn.ampproject.org/v0.js' async onload='myinit()" async></script>

    Thanks! Your right!

    The problem was on the functions.php file, where i made a function for the async load of any .js files.

    This is the function that break the AMP Plugin:

    function wcs_defer_javascripts ( $url ) {
        if ( FALSE === strpos( $url, '.js' ) ) return $url;
        if ( strpos( $url, 'jquery.js' ) ) return $url;
        return "$url' async onload='myinit()";
    }
    add_filter( 'clean_url', 'wcs_defer_javascripts', 11, 1 );

    Now the plugin works perfect and the website are totally visible!

    Thanks a lot Mohammad Jangda!

    Glad it works now!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘AMP Showing Blank Page’ is closed to new replies.