Support » Plugin: AMP » JS script errors

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    The invalid markup that the AMP plugin previously was removing is now being shown as validation errors. Previously the validation errors were hidden from view. You’re now seeing that the AMP plugin has been removing these scripts all along. If the AMP pages are working fine, you can just mark each of the validation errors as “Reviewed” and you won’t get warned about them anymore.

    WooCommerce is not yet AMP-compatible. If the product pages don’t work acceptable (via graceful degradation) when the scripts are removed, then you should disable the Product post type from being served as AMP. You can disable this in the Supported Templates section of the AMP settings screen. You’ll also probably want to disable AMP for the cart page. You can do this via the “AMP Enabled” toggle when editing the page.

    Plugin Author Weston Ruter

    (@westonruter)

    Otherwise, if you don’t want to see the validation errors reported anymore, you can also go into your WordPress user profile settings and turn off Developer Tools. Just be aware that the AMP plugin is still removing these AMP-invalid scripts to make the pages valid AMP.

    tvalleau

    (@tvalleau)

    Thank you, Weston. Exactly the information I needed.

    Plugin Author Weston Ruter

    (@westonruter)

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.