Title: AMP error in Google console
Last modified: March 18, 2021

---

# AMP error in Google console

 *  Resolved [imemine](https://wordpress.org/support/users/imemine/)
 * (@imemine)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/amp-error-in-google-console/)
 * Hi,
 * Google console does not like this in the code. How can disable it for AMP?
 * `<script>WebFontConfig={google:{families:["Open Sans:400,300,700&display=swap"]}};
   if ( typeof WebFont === "object" && typeof WebFont.load === "function" ) { WebFont.
   load( WebFontConfig ); }</script><script id="litespeed-webfont-lib" src="https://
   www.site.com/wp-content/plugins/litespeed-cache/assets/js/webfontloader.min.js"
   async></script><style amp-runtime="" i-amphtml-version="01210`
 * Google says:
 * > Custom JavaScript is not allowed.
 * Thanks

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

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/amp-error-in-google-console/#post-14203393)
 * Hi,
 * how does your AMP page URL formed ? like `https://domain.com/my-post/?amp` or
   something ?
 * Best regards,
 *  Thread Starter [imemine](https://wordpress.org/support/users/imemine/)
 * (@imemine)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/amp-error-in-google-console/#post-14205294)
 * Hello,
 * Yes, exactly like that.
 * We are using the amp plugin [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)
 * Thanks
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/amp-error-in-google-console/#post-14209452)
 * Hi,
 * okay , please go to Page optimization -> tuning setting -> URI exclude -> add`
   amp` into that box , save and purge all
 * Best regards,

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

The topic ‘AMP error in Google console’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

## Tags

 * [google console](https://wordpress.org/support/topic-tag/google-console/)

 * 3 replies
 * 2 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/amp-error-in-google-console/#post-14209452)
 * Status: resolved