While testing Rich Snippet for blogger posts in rich snippet testing tool inside Google Webmaster Tools, I found Warning:Missing required field “updated” problem.
A lot of bloggers have advocated deleting hfeed and hentry fields to solve this problem. This indeed solves the problem, however, deleting a field whose function you don’t fully know may become the starting point of the unknown problems. So, I started exploring it further. Blogger gives you by default “published” timestamp field. A simple tweak of this gives the desired solution. Just find the following piece of code:
<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>
Copy it on a notepad and simply change the class value at two places, like this:
<a class='updated' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='updated' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a>
Now put the above code inside a div with display setting to none, like this:
<div style='display:none’><a class='updated' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='updated' expr:title='data:post.timestampISO8601'><data:post.timestamp/></abbr></a></div>.
Put the above code anywhere in the body part of the template, maybe just below the “published” field. Save the template and now test again inside the rich snippet tool in Webmaster tools. Warning is Gone!
P.S.----> On 15th of March, 2012, Google updated its Rich snippet guidelines and has mentioned anything inside a “display:none” won’t be considered. So, you should find a place to show it to the readers of the blog too, and remove the <div style=’display:none’> from above including the closing </div> for rich snippet to work properly.
NOTE: – Since, so many people are facing problem implementing it, I am giving you the code which you can simply copy and paste. If you have author & timestamp on the top, use this code in footer just like me and if you have default code in footer, use it on the top below the headline. This code will end all your trouble regarding, rich snippet. Just copy & paste. Wish you good luck!
<a expr:href='data:post.authorProfileUrl' rel='author' title='author profile'>
<span class='post-author vcard' itemprop='name'>
<b:if cond='data:top.showAuthor'>
<data:top.authorLabel/>
<span class='fn'><data:post.author/></span>
</b:if>
</span>
</a><a class='updated' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='updated' expr:title='data:post.timestampISO8601'> <data:post.timestamp/></abbr></a>
Note 2:--- To determine the position of the code, simply look for <data:post.body/>. This code actually is Your Blog Post. If you post any code above it, it will appear above your blogpost. If you post below it, it will appear below the post body. In addition you have default footer-1, footer-2….. in your template. You may choose any position. Hope this information will help you in determining where to show the “updated field code”. Just keep in mind the aesthetic value of the blog.
Recommended:
34 comments :
It works, thanks
Thank you...after 1 hour - success!!!!
what will happpened after doing this
Could you please tell us what this code does? Is this the display of time and date??
This code helps your side to show rich snippet in google search results. To know how it looks, just click and watch the pic on top showing the rich snippet of this very page in SERP.
I couldn't able to find the link <a class='timestamp-link'... in blogger.
Can you plz be specific about the location of the code?
Just see the note above. i've added it so that bloggers can simply copy and paste.
Thanks you for wonderful article. one more thing i want to know more about this, My author image is not showing in SERP is there any mistake
Go to page elements add Google plus profile there. You may also opt for not showing on your blog if you wish. It will help verify your authorship and fetch image from there. Good Luck!
Thanks'. Very helpful article.I solve problem about your suggestion.Long live.
By Changing This Code is there Any Change Will Happen in Search results? is Changing of This Code Will be Safe ?
You shouldn't alter the code that is already in the template by default, you should only add the code in "NOTE"in the article above. It is Safe.
thnks
http://zaman-jamil.blogspot.com/
thanks you so much for sharing this tips.. now, i have been fixed updated field problem..
problem solved :D
thanks :D
Where do i paste this note in my template?
On pasting i get this error..
Error interpreting blog template
Invalid data reference post.authorProfileUrl: No dictionary named: 'post' in: ['blog', 'skin', 'view']
Please help!
Sign in to Your Blogger account, Navigate to the Left hand side Column. Click and Reach Edit HTML. Expand the Widget. And Paste (the code only)
You must be doing something wrong while pasting. However, Now I don't say you should be pasting the code at a different place. Simply, set div class = 'Updated' at both the places and you are done.
Earlier, I thought, one should not temper with original fields. But there are just too many which needs changes, like imageUrl.... So, just change the class value & Enjoy! Nothing more is required.
So i put the code in the following place before i would like you to tell me if it's ok.
this is my page i hope you will take a look and tell me if it's ok
http://gasesti-de-toate.blogspot.ro
You may put an additional code in the bog OR just change the div Class value to 'Updated' in the existing code. Now I say Later is a better strategy.
i put the code and now it looks like in the following picture. I just wanna know if this is how should looks like. See the picture here http://s10.postimage.org/688z42k1l/image.jpg
It is not in English! But I could not see any error, so it must be Ok. Have you checked it in Rich Snippet Tool???
the picture is from the rich snippet tool
Resolution for Invalid data reference post problem -
http://www.buggybread.com/2013/03/template-error-invalid-data-reference.html
you seem to be missing the author card. Just copy & paste the code above in "NOTE" in your template & tell us if it removes the warning in webmaster tools. I think it should solve your problem.
Hey! You do one simple thing. Copy your entire template with expand box ticked on a notepad & mail it to me. I will send you back with correction.
I regret to inform you that nothing worked on your template. You have a heavily tweaked template. Sometimes, even some of the posts in my blog shows this error and the reason is they contain some javascript or images, until I remove them one by one to get it through the rich snippet test. So, I advise you to start with the default theme or one with lighter tweaks and rebuild your template introducing tweaks one by one to figure out what is actually causing the problem. Wish you good luck!
It does not work on my blogger http://iknowonethingthatiknownothing.blogspot.com
Could you help me?
I don't think, people who have chosen to hide their profile from public view in blogger setting, should even try this. Google won't show the exclamation mark, in SERP.
Post a Comment