Title: Custom JavaScript is not allowed.
Last modified: January 31, 2019

---

# Custom JavaScript is not allowed.

 *  [aljawalat](https://wordpress.org/support/users/aljawalat/)
 * (@aljawalat)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-6/)
 * hello
    help me please Custom JavaScript is not allowed. First detected: 26/01/
   2019 Status: Error more than 1400 pages
 * Instance 1/2 in page
    <script async src=”//pagead2.googlesyndication.com/pagead/
   js/adsbygoogle.js”></script>
 * Instance 2/2 in page
    <script>
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustom-javascript-is-not-allowed-6%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-6/#post-11156371)
 * Hi [@aljawalat](https://wordpress.org/support/users/aljawalat/),
 * I’ve just tested the URL which you’ve shared and it seems the AMP is validated
   without any error and working perfectly. Here is the Screenshot: [http://take.ms/REIpG](http://take.ms/REIpG)
 * Can you please share the exact URL where you’re seeing this error? We’ll check
   and let you know the solution.
 * Thank you.
 *  [byaslan](https://wordpress.org/support/users/byaslan/)
 * (@byaslan)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-6/#post-11163960)
 * hello [@ampforwp](https://wordpress.org/support/users/ampforwp/) same problem
   I have available
 *  Plugin Contributor [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * (@ampforwp)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-6/#post-11165260)
 * Hi [@byaslan](https://wordpress.org/support/users/byaslan/),
 * May I know how you’re adding the custom javascript? In AMP, It’s officially declared
   that custom javascript is not allowed in AMP otherwise it will give the validation
   error. Please remove the custom script from the AMP to validate your AMP pages.
 * Hope it helps.

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

The topic ‘Custom JavaScript is not allowed.’ 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/)

 * 3 replies
 * 3 participants
 * Last reply from: [ampforwp](https://wordpress.org/support/users/ampforwp/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-6/#post-11165260)
 * Status: not resolved