Title: Custom JS code
Last modified: August 12, 2020

---

# Custom JS code

 *  Resolved [aurelienp59](https://wordpress.org/support/users/aurelienp59/)
 * (@aurelienp59)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/custom-js-code/)
 * Hi,
    I have added a custom JS script to my AMP page. Code added in this section
   of the plugin : Enter HTML in Body (beginning of body tag) Code added is : <amp-
   script layout=”container” src=”path_to_file”></amp-script>
 * The code is added to my AMP pages but is not executed. This code is working fine
   on non-AMP page.
 * Do you have any ideas about this issue ?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/custom-js-code/#post-13250406)
 * Can you please share the website URL with us? So we can analyze it and help you
   to fix the issue for you.
    -  This reply was modified 5 years, 7 months ago by [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/).
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/custom-js-code/#post-13254653)
 * Please follow this tutorial that how to add custom scripts in AMP: [https://ampforwp.com/tutorials/article/how-to-add-custom-scripts-in-amp/](https://ampforwp.com/tutorials/article/how-to-add-custom-scripts-in-amp/)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom JS code’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/custom-js-code/#post-13254653)
 * Status: resolved