• I’ve installed BAM Pro on four of my sites utilizing AMP with no issues. However, on the 5th, I’m getting a warning message.

    Themes with AMP incompatibility(1)

    • Bam Proby ThemezHutVersion 1.3.4

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter thumbwind

    (@thumbwind)

    Information

    AMP does not allow the use of JS <script> tags unless they are for loading AMP components, which are added automatically by the AMP plugin. For any page to be served as AMP, all invalid script tags must be removed from the page. Instead of custom or third-party JS, please consider using AMP components and functionality such as amp-bind and actions and events (as opposed to JS event handler attributes like onclick). Some custom JS can be added if encapsulated in the amp-script. Learn more about how AMP works.

    If all invalid markup is “removed” the page will be served as AMP. However, the impact that the removal has on the page must be assessed to determine if the result is acceptable. If any invalid markup is “kept” then the page will not be served as AMP.Error codeDISALLOWED_TAGInvalid markup<script … >Element attributes

    typetext/javascriptidbam-block-ajax-js-extra

    Element namescriptParent elementbodyText content

Viewing 1 replies (of 1 total)
  • The topic ‘Getting Warning BAM Theme incompatible with AMP’ is closed to new replies.