Google report: The inline 'style' attribute is not allowed in AMP documents.

Posted in: Newspaper
Post count: 80

Got a report this morning about my newspaper-enabled site:

The inline ‘style’ attribute is not allowed in AMP documents. Use ‘style amp-custom’ tag instead.

Is this coming from the style? I do have AMP enabled.

Post count: 6

I have the same problem in my site. I had to deactivate the AMP extension.

I figured out if i remove the AdSense code from the AMP, the errors dissapear, but i get this warning: “The tag ‘amp-ad extension .js script’ is missing or incorrect, but required by ‘amp-ad’. This will soon be an error.”

I think the problem its about the Adsense code in AMP extension.

Help!

Post count: 6

Actually, today i’ve received this msg from Search Console:

The inline ‘style’ attribute is not allowed in AMP documents. Use ‘style amp-custom’ tag instead.

The tag ‘amp-ad extension .js script’ is missing or incorrect, but required by ‘amp-ad’. This will soon be an error.

The tag ‘amp-social-share’ requires including the ‘amp-social-share’ extension JavaScript.

I had to deactivate the extension and reactivate the AMP official plugin.

Post count: 22421

Hello,

Please disable and delete your current version of the amp plugin and download the theme package again from themeforest. Install the amp plugin again from that package you downloaded. There was a faulty version of amp uploaded by mistake but it was corrected soon after.

Thank you!

Post count: 6

Hello again Bogdan, thanks for your quickly response.

I’ve did what u recommended and definitely doesn’t work.

This is an screenshot:

AMP Errors

I hope it is useful for you.

Post count: 22421

Ok,

Please contact us on our email address at contact@tagdiv.com and provide a link to your site and wp-admin (login information and admin rights) so we can login and investigate. Please also include a link to this conversation.

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.