Fix Schema Errors in Blogger

After you run the Structured Data Testing Tool, you may come across numerous errors on how your web page, blogger article, blogger page is structured and how its aligned with the Schema representation defined by Schema.org, an alliance of Search engine giants Google, Yahoo and Bing.

You may see
  • The mainEntityOfPage field is required and recommended. 
  • The dateModified field is required and  recommended. 
  • A value for the headline field is required.
  • A value for the image field is required.
  • A value for the publisher field is required.
  • The property image_url is not recognized by Google for an object of type BlogPosting.
  • The property blogId is not recognized by Google for an object of type BlogPosting.
  • The property postId is not recognized by Google for an object of type BlogPosting.

Before you make any changes to the Blogger template or your website template, make sure you backup. In blogger, click on Template > Backup/ Restore and click on Download Template.

The mainEntityOfPage field is required and recommended. 

Find this
<div class='post hentry uncustomized-post-template' itemprop='blogPost' 
itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

and replace it with
<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'/>

The dateModified field is required and  recommended. 

Find this 
<div class='post hentry uncustomized-post-template' itemprop='blogPost' 
itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

and replace it with 
<meta expr:content='data:post.timestamp' itemprop='datePublished'/>
<meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>

A value for the headline field is required.

Find this 
<h3 class='post-title entry-title' itemprop='name'>

and replace it with 
<h3 class='post-title entry-title' itemprop='headline'>


A value for the image field is required.

Find this 
<data:post.body/>

and paste the below code after the above code.
<div itemprop='image' itemscope='itemscope' itemtype='https://schema.org/ImageObject'> <b:if cond='data:post.firstImageUrl'> <img style='display:none;' expr:src='data:post.firstImageUrl'/> <meta itemprop='url' expr:content='data:post.firstImageUrl'/> </b:if> <meta itemprop='width' content='800'/> <meta itemprop='height' content='800'/> </div>

A value for the publisher field is required.

Find this 
<data:post.body/>

and paste the below code after the above code
<div itemprop='publisher' itemscope='itemscope' itemtype='https://schema.org/Organization'> <div itemprop='logo' itemscope='itemscope' itemtype='https://schema.org/ImageObject'> <img style='display:none;' src='http://doityaar.com'/> <meta itemprop='url' content='http://doityaar.com'/> <meta itemprop='width' content='600'/> <meta itemprop='height' content='60'/> </div> <meta itemprop='name' expr:content='data:blog.title'/> </div>

and make sure to replace the code marked in red with link to your logo.

The property image_url is not recognized by Google for an object of type BlogPosting.


Find this and remove this code entirely
<b:if cond='data:post.thumbnailUrl'> <meta expr:content='data:post.thumbnailUrl' itemprop='image_url'/> </b:if>

The property blogId is not recognized by Google for an object of type BlogPosting.

Find this and remove this code entirely

<meta expr:content='data:blog.blogId' itemprop='blogId'/>


The property postId is not recognized by Google for an object of type BlogPosting.

Find this and remove this code entirely
<meta expr:content='data:post.id' itemprop='postId'/>



4 comments:

  1. non ho capito bene il procedimento... in pratica dovrei cancellare il codice errato e sostituirlo con il codice corretto riportato sotto, ma se l ho faccio il codice che dovrebbe essere giusto me lo legge comunque errore.... come faccio ???

    ReplyDelete

  2. thank you friend , I'm from Brazil . Just do not forget to delete < / div >

    ReplyDelete