New Accelerated Mobile Pages issue detected for site

Posted in: Newspaper
Post count: 22

I’m receiving the following notifications on Google search console…”Invalid URL for HTML attribute ‘href’ in tag ‘a'” AND “The inline ‘style’ attribute is not allowed in AMP documents. Use ‘style amp-custom’ tag instead.” 1700 pages have been affected by the latter. 2 by the former.

Post count: 20685

Hi,

Please check if you are using the latest tagDiv AMP plugin version
https://www.screencast.com/t/leKOCJcJ44
This plugin version contains no known issues, all the identified ones from previous versions were fixed.
If there is still a problem, please provide a link to a post on your website which has these errors and we will take a look.

Most of the problems until now after the plugin has been updated, were related to user inserted post content elements or ads that AMP detects as invalid.

Thanks

Post count: 32

Hi! I’ve got 245+ errors same type “The inline ‘style’ attribute is not allowed in AMP documents. Use ‘style amp-custom’ tag instead” after update to 8.7.5 and switching from WordPress AMP plugin to TagDiv AMP 1.2

Examples: https://magazeta.com/2010/02/lingqi/amp/
https://magazeta.com/2016/02/medicine-archive/amp/

I’m using latest plugin (1.2) available. HOw can I fix it?

Post count: 20685

@mayuxi From what I can see after inspecting one of those posts, there is inline CSS used here in the post
https://www.screencast.com/t/aSAj9YMoP
That is a meta which has been added either by a plugin or another implementation. However this is not acceptable by AMP. Try removing it and there will be no more errors.

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.