Title: AMP error: Custom JavaScript is not allowed. CUSTOM_JAVASCRIPT_DISALLOWED
Last modified: July 9, 2018

---

# AMP error: Custom JavaScript is not allowed. CUSTOM_JAVASCRIPT_DISALLOWED

 *  [samuelmarkno](https://wordpress.org/support/users/samuelmarkno/)
 * (@samuelmarkno)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/)
 * Hi,
 * I love this plugin.
 * I use the plugin (AMP for WP – Mobile pages accelerated for WordPress).
 * I do not have the “share on AMP pages” option enabled in Super Socializer.
 * I receive the following errors in some of the pages.
 * * The parent tag of the ‘head’ tag is ‘$ root’, but it can only be ‘html’. DISALLOWED_HTML
 * * Custom JavaScript is not allowed. CUSTOM_JAVASCRIPT_DISALLOWED
 * * The mandatory attribute ‘amp-custom’ is missing from the ‘style amp-custom’
   tag. DISALLOWED_HTML
 * Screenshot: [https://cloudup.com/cNJUhnO_n_B](https://cloudup.com/cNJUhnO_n_B)
 * You can fix this in the plugin.
 * For now I have disabled it, if you fix it in a new version I will gladly activate
   it again. I await your response soon.

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

 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-10589377)
 * Hi there,
 * Can you try using official AMP plugin [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)
   instead of your current AMP plugin just to check if that makes any difference?
   Seems official AMP plugin takes care of many validation problems itself.
    Let
   us know how it goes.
 *  [jyotibaid](https://wordpress.org/support/users/jyotibaid/)
 * (@jyotibaid)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11135133)
 * Was this issue resolved?
 * I started with AMPforWP and within a few days I started getting the same errors.
 * Per [@heateor](https://wordpress.org/support/users/heateor/)’s recommendation,
   I deactivated AMPforWP and installed AMP. I’m getting the same errors.
    Also 
   setting up Google Analytics is so complicated. I’m using instructions at [https://developers.google.com/analytics/devguides/collection/amp-analytics](https://developers.google.com/analytics/devguides/collection/amp-analytics)
   and getting error messages
 * Is there a way to install AMP and it to work without knowing all the ins and 
   outs of web programming?
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11136269)
 * [@jyotibaid](https://wordpress.org/support/users/jyotibaid/) I will still recommend
   the official AMP plugin. If you are getting AMP validation errors, let me know
   the url of webpage with share icons enabled. You can ask the support of AMP plugin
   regarding integration with Google Analytics.
 *  [jyotibaid](https://wordpress.org/support/users/jyotibaid/)
 * (@jyotibaid)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11173993)
 * Hi Heateor, my url is [https://StoryAtEveryCorner.com](https://StoryAtEveryCorner.com).
   I’ve enabled the AMP plugin. Could you check?
 * Thanks
    Jyoti
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11174575)
 * [@jyotibaid](https://wordpress.org/support/users/jyotibaid/) Checked this url
   [https://storyateverycorner.com/lioness-and-cubs-cross-the-road-in-botswana/amp#development=1](https://storyateverycorner.com/lioness-and-cubs-cross-the-road-in-botswana/amp#development=1)
   There are no validation errors. You can check the browser console.
 *  [bharat](https://wordpress.org/support/users/bharatk121/)
 * (@bharatk121)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11743011)
 * Hi sir,
    i have been facing a error in google search console it showing in amp
   section . “Custom JavaScript is not allowed” for many of my AMP post/pages. How
   do I fix this?
 * screenshot – [https://www.bktricks.com/screenshot.jpeg](https://www.bktricks.com/screenshot.jpeg)
 * any one can see amp working properly but why showing error in google amp
    Amp
   version- [https://www.bktricks.com/earn-talktime-app-earn-up-to-rs-150-paytm/amp/](https://www.bktricks.com/earn-talktime-app-earn-up-to-rs-150-paytm/amp/)
 * Please help …
    -  This reply was modified 6 years, 10 months ago by [bharat](https://wordpress.org/support/users/bharatk121/).
      Reason: amp link mention
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11746271)
 * [@bharatk121](https://wordpress.org/support/users/bharatk121/) Are you sure that
   error is because of this plugin? BTW, the social share icons you have enabled
   at the moment doesn’t belong to this plugin.

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

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

 * ![](https://ps.w.org/super-socializer/assets/icon-128x128.png?rev=1866723)
 * [Social Share, Social Login and Social Comments Plugin - Super Socializer](https://wordpress.org/plugins/super-socializer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-socializer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-socializer/)
 * [Active Topics](https://wordpress.org/support/plugin/super-socializer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-socializer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-socializer/reviews/)

## Tags

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

 * 7 replies
 * 4 participants
 * Last reply from: [Heateor Support](https://wordpress.org/support/users/heateor/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/amp-error-custom-javascript-is-not-allowed-custom_javascript_disallowed/#post-11746271)
 * Status: not resolved