• Hello,

    following error occurs when validating a website with your plugin:

    The tag ‘amp-sidebar extension .js script’ appears more than once in the document. This will soon be an error.

    This is a workaround by editing the child-theme’s function.php

    add_action( ‘init’, function() {
    add_filter( ‘amp_post_template_data’, ‘ls_add_amp_related_scripts’, 20 );
    function ls_add_amp_related_scripts( $data ) {
    global $ls_add_amp_sidebar;
    if(isset($ls_add_amp_sidebar)) {
    unset($data[‘amp_component_scripts’][‘amp-sidebar’]);
    }
    $ls_add_amp_sidebar=true;
    return $data;
    }

    });

    Maybe it helps you?

    Will you take this into consideration for the next update?

    Thank you in forward.

  • The topic ‘Google-Validator error for double tag ‘amp-sidebar extension .js script’’ is closed to new replies.