Title: Custom JavaScript is not allowed
Last modified: December 21, 2018

---

# Custom JavaScript is not allowed

 *  Resolved [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-5/)
 * Hello;
 * I am having the following error **Custom JavaScript is not allowed.** on AMP 
   pages.
 * below is the code Google are marking bad
 * `<script>(adsbygoogle = window.adsbygoogle || []).push({});</script></div> <amp-
   pixel src="https://pixel.wp.com/g.gif?v=ext&j=1%3A6.8.1&blog=137951207&post=13718&
   tz=1&srv=thegloor.com&host=thegloor.com&rand=RANDOM&ref=DOCUMENT_REFERRER"></
   amp-pixel> <script type="application/ld+json">{"@context":"http:\/\/schema.org","
   @type":"BlogPosting","mainEntityOfPage":"https:\/\/thegloor.com\/y-combinator-
   is-investing-in-nigerian-saving-startup-cowrywise\/","publisher":{"@type":"Organization","
   name":"Thegloor","logo":{"@type":"ImageObject","url":"https:\/\/thegloor.com\/
   wp-content\/uploads\/2017\/11\/TheGloor-favicon.png","height":"60","width":"600"}},"
   headline":"Y Combinator Is Investing In Nigerian Saving StartUp, CowryWise","
   datePublished":"2018-07-22T14:35:31+00:00","dateModified":"2018-07-22T14:35:31
   +00:00","author":{"@type":"Person","name":"Ini Laurence Inyang"},"image":{"@type":"
   ImageObject","url":"https:\/\/i0.wp.com\/thegloor.com\/wp-content\/uploads\/2018\/
   07\/CowryWise.png?fit=954%2C581&ssl=1","width":954,"height":581}}</script> <amp-
   analytics type="googleanalytics" id="analytics1"> <script type="application/json"
   >{"vars":{"account":"UA-109157879-1","anonymizeIP":"set"},"triggers":{"trackPageview":{"
   on":"visible","request":"pageview"}}} </script> </amp-analytics> </body> </html
   >`
 * 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-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [shreen2008](https://wordpress.org/support/users/shreen2008/)
 * (@shreen2008)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-5/#post-11018420)
 * Hello.
    I am also getting the same error. One of the web pages getting error 
   is [https://www.windowstechit.com/4996/find-hdmi-driver-windows-10-dell-and-fix-no-audio/](https://www.windowstechit.com/4996/find-hdmi-driver-windows-10-dell-and-fix-no-audio/)
   I am using Thesis Framework with Effectus Skin.
 *  [Mohammed Kaleem](https://wordpress.org/support/users/beingsmart/)
 * (@beingsmart)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-5/#post-11023194)
 * Hi [@iamkingsleyf](https://wordpress.org/support/users/iamkingsleyf/)
 * Have you done any customization because I’ve checked your website and it’s working
   fine without any custom javascript error?
    Check this AMP Test: [https://search.google.com/test/amp?id=1kKPs41GZJB8AzaV0mdPJw](https://search.google.com/test/amp?id=1kKPs41GZJB8AzaV0mdPJw)
 *  [Mohammed Kaleem](https://wordpress.org/support/users/beingsmart/)
 * (@beingsmart)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-5/#post-11023200)
 * Hi [@shreen2008](https://wordpress.org/support/users/shreen2008/)
 * I didn’t see any error on your website please check this AMP test: [https://search.google.com/test/amp?id=nNGJX9U-_FdhTTZWJqUXTA](https://search.google.com/test/amp?id=nNGJX9U-_FdhTTZWJqUXTA)
 *  [Mohammed Kaleem](https://wordpress.org/support/users/beingsmart/)
 * (@beingsmart)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-5/#post-11023204)
 * [@iamkingsleyf](https://wordpress.org/support/users/iamkingsleyf/) [@shreen2008](https://wordpress.org/support/users/shreen2008/)
 * Google will crawl or Indexed the pages/posts for non-amp version and AMP version
   in different ways so may it is showing error. So could you please wait until 
   google index all the pages.
 *  Thread Starter [Kingsley Felix](https://wordpress.org/support/users/iamkingsleyf/)
 * (@iamkingsleyf)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/custom-javascript-is-not-allowed-5/#post-11023981)
 * i made some changes (sticky ads to the AMP site with adinserter plugin) guess
   it worked after i removed it

Viewing 5 replies - 1 through 5 (of 5 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/)

## Tags

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

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