Title: Plugin Error on AMP
Last modified: September 4, 2018

---

# Plugin Error on AMP

 *  [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/)
 * Hello,
 * Install it today and get an AMP google error:
 * <html amp lang=”en-US” xmlns:fb=”[https://www.facebook.com/2008/fbml&#8221](https://www.facebook.com/2008/fbml&#8221);
   xmlns:addthis=”[https://www.addthis.com/help/api-spec&#8221](https://www.addthis.com/help/api-spec&#8221);
   >
 * ??
 * Thank you
    Nicos
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-error-on-amp%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Leland](https://wordpress.org/support/users/addthisleland/)
 * (@addthisleland)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10655943)
 * Hi Nicos!
 * Thanks for contacting AddThis Support 🙂
 * Can you share with us a specific AMP URL where this error is happening so we 
   can take a further look?
 * Thanks,
    Leland
 *  Thread Starter [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10656432)
 * Hello,
 * [http://www.stirimeteo.com/2018/04/04/prognoza-meteo-romania-5-apr-2018-anm/amp/](http://www.stirimeteo.com/2018/04/04/prognoza-meteo-romania-5-apr-2018-anm/amp/)
   
   [http://www.stirimeteo.com/2018/05/28/prognoza-meteo-romania-29-mai-2018-anm/amp/](http://www.stirimeteo.com/2018/05/28/prognoza-meteo-romania-29-mai-2018-anm/amp/)
   [http://www.stirimeteo.com/2018/05/21/prognoza-vreme-postavarul-21-may-2018/amp/](http://www.stirimeteo.com/2018/05/21/prognoza-vreme-postavarul-21-may-2018/amp/)
 * etc….
 * There are 28 pages…all appear today after AddThis plugin install.
 * Attribute not allowed „html ⚡ for top-level html”
 * Thank you
 *  Plugin Contributor [Leland](https://wordpress.org/support/users/addthisleland/)
 * (@addthisleland)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10656899)
 * Hi Nicos,
 * In order for our tools to be AMP compatible, there are special steps you will
   have to do which is documented here:
 * [http://www.addthis.com/academy/how-to-set-up-amp-on-your-wordpress-site/](http://www.addthis.com/academy/how-to-set-up-amp-on-your-wordpress-site/)
 * Can you try following the above steps and let us know if you run into any part
   where you’re having issues with?
 * Thanks,
    Leland
 *  Thread Starter [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10657969)
 * Hello,
 * Thank you for your answer.
 * I’m using wptouch plugin and wptouch theme for mobile version. This come with
   automatic AMP settings.
 * No additional AMP plugin or Glue for Yoast plugin here.
    Trying to install these
   plugins return an answer : fail to install …(overwriting wpthouch existing files..).
 * Thank you,
    Nicos
 *  Plugin Contributor [Leland](https://wordpress.org/support/users/addthisleland/)
 * (@addthisleland)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10660914)
 * Hi Nicos,
 * In order for our tools to be compatible with AMP, you will have to follow the
   below documentation:
 * – [http://www.addthis.com/academy/how-to-install-addthis-inline-share-buttons-on-amp-accelerated-mobile-pages/](http://www.addthis.com/academy/how-to-install-addthis-inline-share-buttons-on-amp-accelerated-mobile-pages/)
   –
   [https://www.ampproject.org/docs/reference/components/amp-addthis](https://www.ampproject.org/docs/reference/components/amp-addthis)
 * Essentially, you will have to uninstall the plugin and insert the below code 
   within the <head> part of your WordPress site (typically located in your header.
   php template):
 * Add in between <head></head>:
    <script async custom-element=”amp-addthis” src
   =”[https://cdn.ampproject.org/v0/amp-addthis-0.1.js”></script&gt](https://cdn.ampproject.org/v0/amp-addthis-0.1.js”></script&gt);
 * Finally, you’ll just need to add this code before your page’s </body> (typically
   found in your footer.php template):
 * Add in between <body></body>:
    <amp-addthis width=”320″ height=”92″ layout=”responsive”
   data-pub-id=”ra-59c2c366435ef478″ data-widget-id=”0fyg”> </amp-addthis>
 * Here is a video I created for you showing the above steps:
    [https://www.screencast.com/t/9uqniv2n9xMr](https://www.screencast.com/t/9uqniv2n9xMr)
 * Let me know if you have any questions!
 * Thanks,
    Leland
 *  Thread Starter [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10673644)
 * Hello,
 * Made this (uninstall and then …sugested steps) and no improvments :
 * <html amp lang=”en-US” xmlns:fb=”[https://www.facebook.com/2008/fbml&#8221](https://www.facebook.com/2008/fbml&#8221);
   xmlns:addthis=”[https://www.addthis.com/help/api-spec&#8221](https://www.addthis.com/help/api-spec&#8221);
   >
 * :((
 * 5 sept – 5 pages with this issue
    6 sept – 36 pages with this issue 7 sept – 
   57 pages with this issue 8 sept – 107 pages with this issue 9 sept – 128 pages
   with this issue 10 sept – 140 pages with this issue
 * So only thing to solve this issue is to delete plugin?
 * Thank you
 * Nicos
    -  This reply was modified 7 years, 7 months ago by [Nicorel](https://wordpress.org/support/users/nicorel/).
    -  This reply was modified 7 years, 7 months ago by [Nicorel](https://wordpress.org/support/users/nicorel/).
 *  Plugin Author [addthis_matt](https://wordpress.org/support/users/addthis_matt/)
 * (@addthis_matt)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10674231)
 * Hi Nicos,
 * That html tag attribute is added by our WP plugin (rather than our AMP code),
   so it looks like the plugin didn’t remove that code when it was deactivated. 
   Could you try uninstalling the WP plugin and removing the AddThis folder from
   our plugins directory?
 *  Thread Starter [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10677319)
 * Hello,
 * So…now there is no addthis files or plugin on my wordpress.
 * So i had to made this setup:
 * “In order for our tools to be compatible with AMP, you will have to follow the
   below documentation:
 * – [http://www.addthis.com/academy/how-to-install-addthis-inline-share-buttons-on-amp-accelerated-mobile-pages/](http://www.addthis.com/academy/how-to-install-addthis-inline-share-buttons-on-amp-accelerated-mobile-pages/)
   –
   [https://www.ampproject.org/docs/reference/components/amp-addthis](https://www.ampproject.org/docs/reference/components/amp-addthis)
 * Essentially, you will have to uninstall the plugin and insert the below code 
   within the <head> part of your WordPress site (typically located in your header.
   php template):
 * Add in between <head></head>:
    <script async custom-element=”amp-addthis” src
   =”https://cdn.ampproject.org/v0/amp-addthis-0.1.js”></script>
 * Finally, you’ll just need to add this code before your page’s </body> (typically
   found in your footer.php template):
 * Add in between <body></body>:
    <amp-addthis width=”320″ height=”92″ layout=”responsive”
   data-pub-id=”ra-59c2c366435ef478″ data-widget-id=”0fyg”> </amp-addthis>”
 * to my basic wordpress theme Clean Magazine or somewhere on WpTouch plugin files(
   wptouch premium plugin include his own AMP) wich also include own mobile theme?
 * Thank you
    Nicos
 *  Plugin Contributor [Leland](https://wordpress.org/support/users/addthisleland/)
 * (@addthisleland)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10678855)
 * Hi Nicorel,
 * I’m not too familiar with WPTouch but I did read through their website and it
   appears that they use their own theme to generate your mobile pages and because
   of that I believe you will have to add those 2 pieces of code somewhere in the
   plugin settings if possible.
 * Thanks,
    Leland
 *  Thread Starter [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10701206)
 * Hello,
 * Unfortunately i had to delete your plugin. AMP errors appear also after instaling
   that code on WPtouch theme.
 * :((
 * Nicos
    Any other plugin without AMP errors?
    -  This reply was modified 7 years, 6 months ago by [Nicorel](https://wordpress.org/support/users/nicorel/).
 *  Thread Starter [Nicorel](https://wordpress.org/support/users/nicorel/)
 * (@nicorel)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10766948)
 * Hello,
 * Please let me know if you’ll fix that to roll back.
 * Thank you
    Nicos
 *  Plugin Contributor [Leland](https://wordpress.org/support/users/addthisleland/)
 * (@addthisleland)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10788831)
 * Hi Nicos,
 * Right now the plugin works as intended and it is AMP compatible with a few tweaks.
   However, AddThis for AMP is not compatible with your WPtouch plugin, but with
   that said, there’s something in the pipeline for our WordPress AMP users 😉
 * Thanks,
    Leland

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

The topic ‘Plugin Error on AMP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/addthis-all_ffab73.svg)
 * [WordPress Website Tools Plugin – AddThis](https://wordpress.org/plugins/addthis-all/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/addthis-all/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/addthis-all/)
 * [Active Topics](https://wordpress.org/support/plugin/addthis-all/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/addthis-all/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/addthis-all/reviews/)

 * 12 replies
 * 3 participants
 * Last reply from: [Leland](https://wordpress.org/support/users/addthisleland/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/plugin-error-on-amp/#post-10788831)
 * Status: not resolved