Title: AMP Errors &#8211;
Last modified: August 31, 2016

---

# AMP Errors –

 *  Resolved [Jakobi](https://wordpress.org/support/users/jakobi/)
 * (@jakobi)
 * [10 years ago](https://wordpress.org/support/topic/amp-errors/)
 * Hello,
 * None of my pages validate because of an added script that is being added to right
   before the </body> tag. When I disable the NextGen Gallery plugin, everything
   validates.
 * How can I remove this without disabling the plugin?
 * `<!-- ngg_resource_manager_marker --><!-- ngg_resource_manager_marker --><style
   type="text/css"></style><script type="text/javascript"></script><script type='
   text/javascript'...`
 * [https://wordpress.org/plugins/nextgen-gallery/](https://wordpress.org/plugins/nextgen-gallery/)

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

 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years ago](https://wordpress.org/support/topic/amp-errors/#post-7425255)
 * [@jakobi](https://wordpress.org/support/users/jakobi/) – We do not have any specific“
   AMP” code in our plugin but as it is, you appear to be referring to an HTML comment
   we insert into the page for reference purposes. It should not be appearing twice
   which may be pointing to some other issue on your site … but, as it is, you might
   try the following to see if it suits your needs (although it could cause breakage
   elsewhere are it is part of our third-party compatibility code) …
 * … add the following to your theme’s functions.php file:
    `add_filter( 'run_ngg_resource_manager','
   __return_false' );`
 * Thanks!
 * – Cais.
 *  Thread Starter [Jakobi](https://wordpress.org/support/users/jakobi/)
 * (@jakobi)
 * [10 years ago](https://wordpress.org/support/topic/amp-errors/#post-7425327)
 * Thank you, that worked great. My pages now validate for AMP.
 * [https://www.ampproject.org/docs/get_started/about-amp.html](https://www.ampproject.org/docs/get_started/about-amp.html)
 *  Plugin Contributor [photocrati](https://wordpress.org/support/users/photocrati/)
 * (@photocrati)
 * [10 years ago](https://wordpress.org/support/topic/amp-errors/#post-7425332)
 * [@jakobi](https://wordpress.org/support/users/jakobi/) – Thanks for the update!
 * – Cais.

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

The topic ‘AMP Errors –’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [NGG](https://wordpress.org/support/topic-tag/ngg/)

 * 3 replies
 * 2 participants
 * Last reply from: [photocrati](https://wordpress.org/support/users/photocrati/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/amp-errors/#post-7425332)
 * Status: resolved