Title: Plugin script in header showing errors in AMP validator
Last modified: November 21, 2017

---

# Plugin script in header showing errors in AMP validator

 *  Resolved [danescobar](https://wordpress.org/support/users/danescobar/)
 * (@danescobar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/)
 * I’ve checked my AMP pages on a validator and the script Sassy adds to the document
   <head> show these errors:
    - Only AMP runtime ‘script’ tags are allowed, and only in the document head.
    - CSS syntax error in tag ‘style amp-custom’ – saw invalid at rule ‘@charset’.
      Column 1268
    - The text (CDATA) inside tag ‘style amp-custom’ contains ‘CSS !important’, 
      which is disallowed.
    - .heateor_sss_vertical_sharing{display:none!important} and more instances
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-script-in-header-showing-errors-in-amp-validator%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9709019)
 * We are working on it. Please bear with us.
 *  Thread Starter [danescobar](https://wordpress.org/support/users/danescobar/)
 * (@danescobar)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9711862)
 * So, for now the only solution to avoid Google Webmaster giving critical AMP errors
   is to disable your plugin until you update it?
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9718030)
 * No, you can still use our plugin with the icons disabled on AMP pages (from the
   option in `Miscellaneous` section at plugin options page) to avoid these errors,
   until we update the plugin.
 *  Thread Starter [danescobar](https://wordpress.org/support/users/danescobar/)
 * (@danescobar)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9797674)
 * Hi [@heateor](https://wordpress.org/support/users/heateor/),
 * Is this bug fixed in your last update?
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9806045)
 * [@danescobar](https://wordpress.org/support/users/danescobar/), Sorry, it’s not
   been fixed yet.
 *  Plugin Author [Heateor Support](https://wordpress.org/support/users/heateor/)
 * (@heateor)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9908625)
 * This has been fixed in version 3.1.7. Kindly update your plugin.

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

The topic ‘Plugin script in header showing errors in AMP validator’ is closed to
new replies.

 * ![](https://ps.w.org/sassy-social-share/assets/icon-128x128.png?rev=3258279)
 * [Social Sharing Plugin - Sassy Social Share](https://wordpress.org/plugins/sassy-social-share/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sassy-social-share/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sassy-social-share/)
 * [Active Topics](https://wordpress.org/support/plugin/sassy-social-share/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sassy-social-share/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sassy-social-share/reviews/)

## Tags

 * [sassy](https://wordpress.org/support/topic-tag/sassy/)
 * [social](https://wordpress.org/support/topic-tag/social/)

 * 6 replies
 * 2 participants
 * Last reply from: [Heateor Support](https://wordpress.org/support/users/heateor/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/plugin-script-in-header-showing-errors-in-amp-validator/#post-9908625)
 * Status: resolved