• Resolved lovely86

    (@lovely86)


    Hello AMP for WP,

    It seems AMP does not allow to run custom JS on its pages, Just wondering is there any way i can use some custom JS for video embed settings.

    Please Guide .

    Thank You ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Same issue here. Custom Java script is not working
    Please fix it

    I fixed manually by removing this line from /includes/features/performance/performance-functions.php

    if(preg_match(‘/<script(.*?)type=”text\/javascript”(.*?)>[\s\S]*?<\/script>/’, $content_buffer)){
    $content_buffer = preg_replace(‘/<script(.*?)type=”text\/javascript”(.*?)>[\s\S]*?<\/script>/’, ”, $content_buffer);
    }

    Hope it will get fixed in next update

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    lovely86: Can you please share the website URL with us? So we can analyze it and help you to fix the issue.

    fadisamir: As per the forum guidelines you need to create a new topic.

    Thread Starter lovely86

    (@lovely86)

    @ahmedkaludi We have discussed this issue over Email And You informed Additional javascript Is not allowed to add as it will give validation Error. [Discussion ended Over Email]

    Would you like to share your thoughts if you have any plan to Update/Impalement the Idea shared above by @fadisamir ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Additional javascript’ is closed to new replies.