Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor gambitph

    (@gambitph)

    We’re still investigating AMP compatibility.

    We’ll update you once we’ve fixed the AMP issues. ??

    Plugin Contributor gambitph

    (@gambitph)

    Setting this thread as resolved due to inactivity.

    I’m getting some validation errors from the AMP plugin:

    “Arbitrary JavaScript is not allowed in AMP. You cannot use JS <script> tags unless they are for loading AMP components (which the AMP plugin will add for you automatically). In order for a page to be served as AMP, the invalid JS code must be removed from the page. Learn more about how AMP works. As an alternative to using custom JS, please consider using a pre-built AMP functionality, including actions and events (as opposed to JS event handler attributes like onclick) and the amp-bind component; you may also add custom JS if encapsulated in the amp-script.
    If you remove the invalid markup then it will not block this page from being served as AMP. Note that you need to check what impact the removal of the invalid markup has on the page to see if the result is acceptable. If you keep the invalid markup, then the page will not be served as AMP.

    Error code
    DISALLOWED_TAG
    Invalid markup
    <script … >

    Element attributes
    src …/wp-content/plugins/stackable-ultimate-gutenberg-blocks/dist/frontend_blocks.js
    Element name
    script
    Parent element
    head

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘AMP?’ is closed to new replies.