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” xmlns:addthis=”https://www.addthis.com/help/api-spec” >
??
Thank you
NicosThe page I need help with: [log in to see the link]
-
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,
LelandHello,
https://www.stirimeteo.com/2018/04/04/prognoza-meteo-romania-5-apr-2018-anm/amp/
https://www.stirimeteo.com/2018/05/28/prognoza-meteo-romania-29-mai-2018-anm/amp/
https://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
Hi Nicos,
In order for our tools to be AMP compatible, there are special steps you will have to do which is documented here:
https://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,
LelandHello,
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,
NicosHi Nicos,
In order for our tools to be compatible with AMP, you will have to follow the below documentation:
– https://www.addthis.com/academy/how-to-install-addthis-inline-share-buttons-on-amp-accelerated-mobile-pages/
– https://www.ampproject.org/docs/reference/components/amp-addthisEssentially, 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>Here is a video I created for you showing the above steps:
https://www.screencast.com/t/9uqniv2n9xMrLet me know if you have any questions!
Thanks,
LelandHello,
Made this (uninstall and then …sugested steps) and no improvments :
<html amp lang=”en-US” xmlns:fb=”https://www.facebook.com/2008/fbml” xmlns:addthis=”https://www.addthis.com/help/api-spec” >
:((
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 issueSo only thing to solve this issue is to delete plugin?
Thank you
Nicos
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?
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:
– https://www.addthis.com/academy/how-to-install-addthis-inline-share-buttons-on-amp-accelerated-mobile-pages/
– https://www.ampproject.org/docs/reference/components/amp-addthisEssentially, 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
NicosHi 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,
LelandHello,
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 6 years, 1 month ago by Nicorel.
Hello,
Please let me know if you’ll fix that to roll back.
Thank you
NicosHi 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
- The topic ‘Plugin Error on AMP’ is closed to new replies.