Remove mainEntityOfPage Structured Data Error | BLOGGER

DR Gurung
Once you verified your website with search console and after adding "a property", you definitely see 'structured data' on the left side of your Dashboard and under 'Search Appearance'. You surely want to know the web crawlers should also understand that you have placed structured data on your blog.

The best way to make sure that is to test your blog URL using below link:
"Structured Data Testing Tool"
This is not a validator of the tags in your blog but a tool, using which Google makes sure it can read structured data from the page and if required can appear as a rich card in search result.

When you validated your blog using the Google 'Structured Data Testing Tool, there are chances that you might have seen below warning:

"The mainEntityofPage field is recommended. Please provide a value if available."

How to remove mainEntityOfPage related warning appearing during Structured Data Testing?

Follow the Steps below:

Step-1. Login with your Blogger Account.
Step-2. Click on "Theme" in the left menu.
Click On 'Theme'
Step-3. Click on "Edit HTML".
Click On 'Edit HTML'
Step-4. Now press Ctrl+F. This will show a search box appear on the top right corner of the editor.
Press 'Ctrl+F'
Step-5. Paste below code in search box and hit enter;
<div class='post hentry uncustomized-post-template' itemprop='blogPost'
itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
Step-6. Once you find the code, comment it out as below;
<!--<div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>-->
Step-7. After commenting add following code just below it;
<div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
<meta itemscope='itemscope' itemprop='mainEntityOfPage'
itemType='https://schema.org/WebPage' expr:itemid='data:post.link ? data:post.link : data:post.url'/>
Note: You do not need to add additional </div> tag as we have not removed or commented it while removing or commenting the <div class='post ....> tag.
Step-8. At last save the template.

Now check back at "Structured Data Testing Tool" to test you blog url. After completing all of the above steps you will get no errors of 'mainEntityOfPage'. Cheers!


DR Gurung
A Learner (अज्ञान जस्तो ठूलो शत्रु अरु केही छैन।) 🙏🙏
Comments
First of all, thank you for taking the time to read my blog. It's much appreciated! If you would like to leave a comment, please do, I'd love to hear what you think!

Suggestions and/or questions are always welcome, either post them in the comment form or send me an email at drgurung82@gmail.com.

However, comments are always reviewed and it may take some time to appear. Always keep in mind "URL without nofollow tag" will consider as a spam.

To add an image:
[image] image_url [/image]

To add a code block:
[code] your_code [/code]

To add a quote:
[quote] your_quote [/quote]

To add a link:
[link] your_link_text | link_url [/link]