Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2194109
amp-ad extension .js script ERROR
Closed

Comments

  • rizanoia started the conversation

    I am getting an error on https://www.rizanoia.com/amp/ saying this

    The tag 'amp-ad extension .js script' is missing or incorrect, but required by 'amp-ad'. This will soon be an error.

    but every time I put the code below in Penci AMP > Header


    <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>

    Copy code snippet

    the error below appears on every blog post

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

  •  2,700
    PenciDesign replied

    Hi,

    Please remove that code inside Penci AMP > Header:

    <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>

    Because the theme already support for this code.


    Best Regards,

    PenciDesign

  • rizanoia replied

    So I will just have to ignore the warning on https://www.rizanoia.com/amp/ ?

    The tag 'amp-ad extension .js script' is missing or incorrect, but required by 'amp-ad'.

  •  2,700
    PenciDesign replied

    Hi,

    You just need go to Appearance > Customizer AMP > Header > and remove the code you've added:

    <script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>

    Because the plugin already support for this code.


    Best Regards,

    PenciDesign

  • rizanoia replied

    I removed it and another error occur.

    URL: https://www.rizanoia.com/amp/
    Error: The tag 'amp-auto-ads' requires including the 'amp-auto-ads' extension JavaScript.

  •  2,700
    PenciDesign replied

    Hi,

    If you don't use Google Adsense Auto Ads, please go to Appearance > Customizer AMP > Homepage Options and check to Disable auto ads.

    We've said about this in the documentation for Soledad theme here


    Best Regards,

    PenciDesign