Title: Error Showing Custom JavaScript is not allowed
Last modified: May 3, 2021

---

# Error Showing Custom JavaScript is not allowed

 *  Resolved [mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * (@mainakexactlly)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/)
 * On my website after adding the AMP plugin, this error is showing up. Can anyone
   please tell me how to deal with this thing. Also, I am very little knowledge 
   related to Coding. So if anyone can tell me how to resolve this problem then 
   it will be highly appreciable. Thanks in advance. I have attached some of the
   links of my website which are facing this Custom JavaScript is not allowed error
   on Google Search Console.
 * [https://www.exactlly.com/blog/index.php/tag/team-building/?amp](https://www.exactlly.com/blog/index.php/tag/team-building/?amp)
   
   [https://www.exactlly.com/blog/index.php/tag/it-department/?amp](https://www.exactlly.com/blog/index.php/tag/it-department/?amp)
   [https://www.exactlly.com/blog/index.php/re-discovering-hrms-as-a-performance-review-software/](https://www.exactlly.com/blog/index.php/re-discovering-hrms-as-a-performance-review-software/)
   [https://www.exactlly.com/blog/index.php/pros-cons-customized-hrms/](https://www.exactlly.com/blog/index.php/pros-cons-customized-hrms/)
   [https://www.exactlly.com/blog/index.php/impact-of-gst-industrywise/](https://www.exactlly.com/blog/index.php/impact-of-gst-industrywise/)
 * Total in 117 links I am facing this error.

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

 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14392317)
 * Hello [@mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * Are you using any CSS and JS concatenation and minification features from another
   plugin? can you please try and disable it.
 * Additionally, Please send us your site health information using [this](https://docs.google.com/forms/d/1JTQmphDlk9YgHpDoFRbHXpkDqv8-QmzTT7MDR4AstyQ/viewform)
   form privately, so we can investigate it further.
 *  Thread Starter [mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * (@mainakexactlly)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14392467)
 * [@milindmore22](https://wordpress.org/support/users/milindmore22/) thanks for
   replying.
    Basically, I just add plugins that are required and activate them.
   But I don’t do any change in CSS and JS in that particular plugins. Also, I have
   sent the upper mentioned form. Thanks.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14392778)
 * Hello [@mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * Thanks for the site info, As I checked I don’t see any optimization in the plugin
   you have installed. Can you confirm your theme does not do any optimizations?
 * Something on you site is contacting CSS and JS files
    eg: `https://www.exactlly.
   com/blog/wp-content/cache/css/static/896e1e8256f739d3686d950a7fdc730f.css`
 * eg:
    `https://www.exactlly.com/blog/wp-content/cache/js/static/0021c7bc6e9b9199fb855e57ab33f824.
   js`
 * The optimization is conflicting with the AMP plugin Creating invalid AMP pages.
 * To narrow down further, could you use the [Health Check & Troubleshooting plugin](https://wordpress.org/plugins/health-check/)
   and enable [its troubleshooting mode](https://make.wordpress.org/support/handbook/appendix/troubleshooting-using-the-health-check/#troubleshooting).
   This mode disables active plugins and switches to a default theme safely since
   it only affects the experience of the logged-in user.
 * – Please [enable the AMP plugin](https://jmp.sh/Zc5YLI9) and let me know if the
   issue is present.
 * – Enabling plugins and your theme one by one in this mode may help pinpoint if
   something else is involved.
 * – Note you can [disable troubleshooting mode](https://jmp.sh/uErQi8t) from the
   plugins page.
 *  Thread Starter [mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * (@mainakexactlly)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14392858)
 * [@milindmore22](https://wordpress.org/support/users/milindmore22/) Thanks Milind
   for your help. But can you please little bit elaborate. Because I am not that
   much coding saavy. If you please tell me the proper steps to resolve it then 
   I am highly grateful. Thanks in advance.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14393357)
 * [@mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * yes sure,
 * First, install the [Chrome extension for AMP](https://chrome.google.com/webstore/detail/amp-validator/nmoffdblmcmgeicmolmhobpoocbbmknc)
   this will make things easy while troubleshooting.
 * Step 1: Install [Health Check & Troubleshooting](https://wordpress.org/plugins/health-check/)
   Plugin.
 * Step 2: Activate Health Check & Troubleshooting plugin.
 * Step 3: goto Tools->Site Health-> Troubleshooting Tab -> click On Enable Troubleshooting
   button. ([Screenshot](https://prnt.sc/12fezrc))
 * You are now in troubleshooting mode( don’t panic ), only you (administrator )
   are affected, your site will perform normally for other users.
 * Step 4: you will see Troubleshooting panel on dashboard first Enable AMP plugin
   (
   [screenshot](https://prnt.sc/12ff46v))
 * Step 5: Check the AMP page with the [issue](https://www.exactlly.com/blog/index.php/tag/team-building/?amp)
   and check chrome extension shows Green Checkmark which means your AMP page is
   valid.
 * eg: [Invalid](https://prnt.sc/12fff5w) AMP on extension
    eg: [Valid](https://prnt.sc/12ffho3)
   AMP on exntesion.
 * Step 6: Enable your theme from the same troubleshooting panel. check site and
   chrome extension if it’s red and has an error then your theme is causing issues.
   if not continue activating plugins one by one
 * Step 7: Activate another plugin check the front end, continue to do so until 
   you find validation [errors](https://prnt.sc/12fff5w).
 * I hope this is helpful
 *  Thread Starter [mainakexactlly](https://wordpress.org/support/users/mainakexactlly/)
 * (@mainakexactlly)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14395664)
 * [@milindmore22](https://wordpress.org/support/users/milindmore22/) Thank you 
   so much. I will follow all the steps you mentioned. If any problem arises I will
   let you know.
 *  Plugin Support [Milind More](https://wordpress.org/support/users/milindmore22/)
 * (@milindmore22)
 * [5 years ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14425289)
 * [@mainakexactlly](https://wordpress.org/support/users/mainakexactlly/) just checking
   in to see if you are able to determine the optimization plugin that was conflicting
   with AMP.
 *  [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * (@mxbclang)
 * [5 years ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14453136)
 * [@mainakexactlly](https://wordpress.org/support/users/mainakexactlly/) As we 
   haven’t received a response, I’ll mark this as resolved. Feel free to open a 
   [new support topic](https://wordpress.org/support/plugin/amp/#new-post) if you
   continue to encounter issues, or reopen this topic and we’d be happy to assist.
   Thank you!

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

The topic ‘Error Showing 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/)

## Tags

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

 * 8 replies
 * 3 participants
 * Last reply from: [Bethany Chobanian Lang](https://wordpress.org/support/users/mxbclang/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/error-showing-custom-javascript-is-not-allowed/#post-14453136)
 * Status: resolved