How to Fix AMP Validation Errors on August 2020

AMP Errors on August

How to Fix AMP Validation Errors on August 2020


It was only on August 10, 2020. Google search is experiencing an update to the Head tag, so blogs that experience amp validity become amp invalid. A lot of bloggers get messages from google search consule informing them that the AMP is an error.

This causes a lot of questions especially in blogger groups that are on Facebook. and start asking questions until looking for a solution. there is nothing here i will share the solution.

For amp error issues it's more or less like this.

Tag or text which is only allowed inside the body section found outside of the body section.
The tag 'BODY' appears more than once in the document.

The error occurred in Edit HTML Blogger, because as we already know that bloggers are eager to update their features in order to compete with other platforms.

The error as above occurs because of the appearance of an Adsense data-ad-client code that uses <!-- and --> comments on the AMP theme structure as following image. (Can be viewed through the view page source)

How to Fix AMP Validation Errors


Find the following code

<html

Replace it with the code below

<html b:css='false' b:js='false'

For results like this
Previous:

<HTML expr:dir='data:blog.languageDirection' lang='id'>

After

<html b:css='false' b:js='false' expr:dir='data:blog.languageDirection' lang='id'>

Then find the following code

&lt;/head&gt;&lt;!--<head/>--&gt;
<body>

Replace it with the code below

&lt;/head&gt;
&lt;body&gt;

If you have, continue searching for the following code

&lt;!--</body>--&gt; &lt;/body&gt;
</html>

Replace it with the code below

&lt;!--<head/>&lt;!--<body/>--&gt; &lt;/body&gt;
</html>

Finally, every time you edit the template please delete the code marked below

<html b:css='false' b:js='false' expr:dir='data:blog.languageDirection' lang='id' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>

So it becomes like this.

<html b:css='false' b:js='false' expr:dir='data:blog.languageDirection' lang='id'>

Okay that's all how to solve the error on AMP due to google search update in August 2020. Hopefully it can help you solve this error problem.


www.masgio.xyz

0 Response to "How to Fix AMP Validation Errors on August 2020"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel