Wednesday, December 11, 2013

Google Webmaster tools Blogger Blogspot fix for blogId and postId


Google Webmaster Tools error: Fix for Blogger Blogspot


For information on newer requirements, visit this Wiki


Extracted structured data: blogId and postId

Error: 

  • Error: Page contains property "blogid" which is not part of the schema.
  • Error: Page contains property "postid" which is not part of the schema.
In this case, the recommendation around the Internet is to delete the offending tags because they are not a part of the Blog, Blogpost, or Blogposting Schema.

Since these itemprop (s) do not exist, it seems like a reasonable thing to try.

Backup your template first!



In my template there were two instances of the following two lines of code....


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

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

Since I'm never in a hurry to delete anything, I commented (<!--  span lines  --> ) the offending meta tags in both occurrences.


<!--

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

A check back with Google Webmaster Tools Rich Snippets, Structured Data Testing Tool  and my errors are now gone.


Note: It is not a good idea to leave HTML comments in your template because they cannot be nested. So, the final step is to delete the comments and the meta tags.  (Since I know you have a backup)


Source: 

(and hat tip to)
Brain of Computer blogspot

5 comments:

  1. Thanks for this post. I have used this hack to my product review blog: http://www.whatbestbuy.com/2014/06/iphone-3gs-classic.html

    ReplyDelete
  2. what you think is this right to delete OR comment original code? for my blog

    ReplyDelete
  3. Thanks for the data. It has worked well so far.

    ReplyDelete