MainEntityOfPage Structured Data Error In Blogger - Innvesta

Post Top Ad

Tuesday, 9 January 2018

MainEntityOfPage Structured Data Error In Blogger

Follow these instructions below To solve MainEntityOfPage Structured Data Error In Blogger.The use of mainEntityOfPage attribute is  to give the URL of a page on which the thing is the main entity. 

 The mainEntityOfPage field is recommended. Please provide a value if available.

Instructions 

First download or copy your original Blogger Template.  
Paste duplicate copy of your template in text editor. 
You have to replace the old code with the new one.

Original Code :
<b:includable id='post' var='post'>
 <div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
  <b:includable id='mobile-post' var='post'>
    <div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

Replace your original code with this new code

To fix MainEntityOfPage error you've to find these codes and relapse with original. 
Press Ctrl + f =    <b:includable id='post' var='post'>  
<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' content= 'data:post.link : data:post.url'/>
Press Ctrl + f = <b:includable id='mobile-post' var='post'>
<div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
     <meta expr:itemid='data:post.link' content= 'data:post.link : data:post.url' itemType='https://schema.org/WebPage' itemprop='mainEntityOfPage' itemscope='itemscope'/>

Now Save your template and test again with Google Structure data tool 

No comments:

Post a Comment