• Resolved quadlayers

    (@quadlayers)


    Hello guys!

    The AMP plugin is removing the scripts and styles related to the WhatsApp Chat plugin

    What is the best way to include scripts and styles in AMP pages?

    Were looking for something like

    add_action(‘amp_footer’, ”)
    add_action(‘amp_header’, ”)
    add_action(‘amp_enqueue_scripts’, ”)

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

Viewing 1 replies (of 1 total)
  • @quadlayers Custom JavaScript is restricted in AMP, and any URLs which feature scripts will result in invalid AMP URLs. The plugin automatically removes these scripts in reader mode, or if you have the auto acceptance of validation errors in transitional mode toggled on.

    You can add other elements to the head of reader mode amp via the amp_post_template_head action. You can find out more about reader mode customization on the dedicated section of the plugin website.

    You can contact the developer of the plugin to ask about AMP status, or attempt using the amp-script component although there are restrictions which you can find out more about on the same page.

Viewing 1 replies (of 1 total)
  • The topic ‘AMP removes WhatsApp Chat scripts’ is closed to new replies.