Remove All hatom and BlogPosting Structured Data Errors from Blogger Blog

Are you experiencing hatom structured data errors in Google Search Console? Most of the bloggers are facing these problems. These errors does not have any impact on blog's performance but these errors should not exist more in your blog to make a healthy site. Structured data is used to display the site in a better manner on major search engines result pages. You can check the errors on your blog using Google webmasters tool called Structured Data Testing Tool.  

This post will be covering procedures to fix all the structured data errors in blogger, such as:
  • missing: author
  • missing: updated
  • missing: entry-title
  • The property image_url is not recognised 
  • The property blogId is not recognised
  • The property postId is not recognised
  • A value for the headline field is required
  • A value for the image field is required
  • The DateModified field is recommended. Please provide the value if available.
  • The MainEntityOfPage field is recommended. Please provide the value if available.


Fixing Structured Data Errors

1. Go to Blogger Dashboard >> Template >> Edit HTML
Before editing HTML don't forget to make a complete Backup of your Template.

2. Click anywhere within the HTML code. Press Ctrl + F (Cmd + F on Mac), Search box will appear on the top right.



Fixing image_url error 

Find the code given below and delete it completely.  If the code appear 2 times in your template, delete it twice.


<b:if cond='data:post.thumbnailUrl'>
   <meta expr:content='data:post.thumbnailUrl' itemprop='image_url'/>
</b:if>



Fixing BlogId Error


Find the code given below and delete it completely.  If the code appear 2 times in your template, delete it twice.

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



Fixing PostId Error


Find the code given below and delete it completely.  If the code appear 2 times in your template, delete it twice.


<meta expr:content='data:post.id' itemprop='postId'/>




Fixing headline field error

Find the code given below. It may appear twice in your template.


<h3 class='post-title entry-title' itemprop='name'>
Now replace the above code with the one given below.(If above code appears twice then replace the above code with the one given below twice).


<h3 class='post-title entry-title' itemprop='headline'>




Fixing missing: author error

Find the code given below.
<span class='post-author vcard' > 
                <b:if cond='data:top.showAuthor'> 
                  <b:if cond='data:post.authorProfileUrl'> 
                    <span class='fn'> 
                      <a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'> 
                        <data:post.author/> 
                      </a> 
                    </span> 
                  <b:else/> 
                    <span class='fn'><data:post.author/></span> 
                  </b:if> 
                </b:if> 
              </span>

Now replace the above code with the one given below.
<span class='post-author vcard' itemscope='itemscope'  itemtype='http://schema.org/Person'> 
                <b:if cond='data:top.showAuthor'> 
                  <b:if cond='data:post.authorProfileUrl'> 
                    <span class='fn author'> 
                      <a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'> 
                        <span itemprop='name'><data:post.author/></span> 
                      </a> 
                    </span> 
                  <b:else/> 
                    <span class='fn author'><span itemprop='name'><data:post.author/></span></span> 
                  </b:if> 
                </b:if> 
              </span>




Fixing missing: updated error

Find the code given below.
<data:post.timestamp/>
 Now replace this code with the code given below.
<span class='updated'><data:post.timestamp/></span>





Fixing entry-title error


Find the code given below. It will appear twice in your template.
<b:if cond='data:post.title'> 
      <h3 class='post-title'>

Replace the above code twice with the one provided below.


<b:if cond='data:post.title'> 
<h3 class='post-title entry-title'>





Fixing Image field error

Find the code given below. It may appear two or three times.
<data:post.body/>

Now replace the above code with the below one as many times the above one appears in your template.
<data:post.body/>
<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>





Fixing dateModified field error


Find the code given below
<div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
If your template doesn't have the above code, find this one.
<div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

Now copy the code given below and paste it just after the code you found.
<meta expr:content='data:post.timestamp' itemprop='datePublished'/>
<meta expr:content='data:post.lastUpdatedISO8601' itemprop='dateModified'/>





Fixing mainEntityOfPage error

Find the code given below.
<div class='post hentry uncustomized-post-template' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>
 If your template doesn't have the above code, find this one.
<div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

Now replace the code you found with the below one.
<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'/>





Now again validate your site on Structured Data Testing Tool.
Most probably it will not show any error now, but if the errors still persist, comment and let us know. In search console Google will update data within 3 days. We will love to troubleshoot your problems.



Comments

Post a Comment

Popular posts from this blog

How To Succeed In A Start-Up

Body Grooming And Styling For Men