0% found this document useful (0 votes)
41 views

Fix Schema Errors in Blogger

The document provides instructions for fixing schema errors in Blogger by making changes to the blog template code. This includes adding required fields like mainEntityOfPage, dateModified, headline, image and publisher. It also identifies properties like image_url, blogId and postId that are not recognized and should be removed. Backup the template before making any changes.

Uploaded by

Ashucool65
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Fix Schema Errors in Blogger

The document provides instructions for fixing schema errors in Blogger by making changes to the blog template code. This includes adding required fields like mainEntityOfPage, dateModified, headline, image and publisher. It also identifies properties like image_url, blogId and postId that are not recognized and should be removed. Backup the template before making any changes.

Uploaded by

Ashucool65
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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 paste the below code after the above code.

<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'/>

You might also like