Title: AMP Error: Custom JavaScript is not allowed
Last modified: May 21, 2020

---

# AMP Error: Custom JavaScript is not allowed

 *  [goutham93](https://wordpress.org/support/users/goutham93/)
 * (@goutham93)
 * [6 years ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-2/)
 * Hi
 * I am getting this error in google search console as it tried to index my pages.
 * Error: “Custom JavaScript is not allowed.”
 * Link to the validator page:
 * [https://validator.ampproject.org/#url=https%3A%2F%2Fandroidfist.com%2Fhonor-9x-and-vivo-v19-giving-us-the-major-goals%2F%3Famp](https://validator.ampproject.org/#url=https%3A%2F%2Fandroidfist.com%2Fhonor-9x-and-vivo-v19-giving-us-the-major-goals%2F%3Famp)
 * This error is there for many urls.
 * Please help to fix it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Famp-error-custom-javascript-is-not-allowed-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-2/#post-12872770)
 * This has come up before. Please see [https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed-2/](https://wordpress.org/support/topic/amp-custom-javascript-is-not-allowed-2/)
 *  Thread Starter [goutham93](https://wordpress.org/support/users/goutham93/)
 * (@goutham93)
 * [6 years ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-2/#post-12887662)
 * Hi [@westonruter](https://wordpress.org/support/users/westonruter/),
 * This link does not help me..
    I don’t see any sort of hack.. Please help me to
   fix this issue.
 * Regards,
    Goutham
 *  [James Osborne](https://wordpress.org/support/users/jamesosborne/)
 * (@jamesosborne)
 * [6 years ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-2/#post-12887741)
 * [@goutham93](https://wordpress.org/support/users/goutham93/) Please open a new
   support topic as per WordPress guidelines and we’d be happy to assist. Please
   include all information relevant to your site, such as your [Site Health information](https://i.imgur.com/Rtkmsba.png)
   and URL.
 * The plugins [FAQs](https://amp-wp.org/documentation/frequently-asked-questions/)
   page might also be useful.
 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [6 years ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-2/#post-12888434)
 * [@jamesosborne](https://wordpress.org/support/users/jamesosborne/) this is a 
   new topic already?
 * [@goutham93](https://wordpress.org/support/users/goutham93/) Hacks are usually
   hard to see. In any case, I don’t know where the JavaScript code is coming from.
   I can’t find any existing plugin that contains that code which is being added
   to the page. You’ll have to isolate where it is coming from in order for us to
   help. Try deactivating plugins one by one until you see the code removed. If 
   the code never is removed, even after switching themes, then it would appear 
   to be a hack and you’ll need to contact your host.

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

The topic ‘AMP Error: Custom JavaScript is not allowed’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-2/#post-12888434)
 * Status: not resolved