X Close
T Saturday, August 15, 2015

How To Fix "headline and datepublished missing and required" In Blogger

fahim raza 53 Comments so far
how-to-fix-structured-data-tool-errors-in-blogger-tutorial-101helper

Since Google is updating posting schema and search results so frequently, bloggers and webmasters are having trouble to cope with it. Previously Structured Data Testing Tool was detecting following errors:

(1). image_url: 
(2). postId: 
(3). blogId:
how-to-fix-image_url,blogid,postid-errors-in-blogger


But now two new errors are encountered which are:

(1). headline: missing and required
(2). datepublished: missing and required

In this post I will show you how to fix these errors in blogger. So follow below steps to fix your errors. I am starting from "headline: missing and required" first.

Method 1: How To Fix "headline: missing and required" In Blogger:

Step 1: Go to blogger dashboard and navigate to template.

Step 2: Click on Edit Html to Edit your template.

how-to-edit-template-in-blogger

Step 3: Click inside the code and search for below piece of code:

<h1 class='post-title entry-title' itemprop='name'>

Or if you don't find it search for below one:

<h2 class='post-title entry-title' itemprop='name'>

Step 4: Change 'name' to 'headline' in the code  as shown in below image:

how-to-fix-headline-missing and required-in-blogger-structured-data-to-esting-tool

You will find the above code two times or more then two times, make sure to change 'name' to 'headline' in all of these codes.

Step 5: Save your template and test your blog again using Structured Data Testing Tool.

How To Fix "datepublished: missing and required" In Blogger:

If you do it manually it will need hard work and it would be difficult for you so I found an alternative method to fix this error which is much easier then other methods. So follow below steps to fix 'datepublished: missing and required' in your blog.

Step 1: Go to blogger dashboard > settings and select sub-option(Language and formatting):


how-to-fix-datepublished-missing-and-required-in-blogger-structured-data-to-esting-tool

Step 2: Find Formatting and Timestamp Format.




Step 3: Change time format from default to 8/15/2015 04:33:50 AM(Month/Date/Year Time AM) format as show in below image:


how-to-fix-structured-data-tool-errors-in-blogger

Step 4: Click on save settings and go to layout.


blogger-step-by-step-help-tutorials

Step 5: On the layout page edit blog posts.


how-to-edit-blog-posts-in-blogger-101helper

Step 6: Check/Mark both date and time options in post page options as shown in below picture:


how-to-change-date-and-time-settings-in-blogger

Step 7: Change time format to 8/15/2015 04:33:50 AM(Month/Date/Year Time AM) as you did in the settings above(step 3).


how-to-change-date-and-time-settings-in-blogger-101helper

It should be like above image.

Step 8: Click on save and you are done.

Once again check your blog with Structured Data Testing Tool, I am sure this time you will see All good!

If you still have errors in your webmaster testing tools then you have to do all this manually so follow below steps to add codes manually.

Method 2: Fixing "headline and datepublished missing and required" in blogger Manually!

Step 1: Go to your template and edit it.

Step 2: Search for below code:

<div class='date-posts'><div class='post-outer'><div class='post hentry uncustomized-post-template' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

Step 3: Copy below code and paste it below the above code:

<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601' itemprop='datePublished'><span class='updated'><data:post.dateHeader/>T<data:post.timestamp/></span></abbr></a>

Step 4: Now search for this code:

<div class='post hentry' itemprop='blogPost' itemscope='itemscope' itemtype='http://schema.org/BlogPosting'>

Step 5: After finding above code just below it paste this one:

<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601' itemprop='datePublished'><span class='updated'><data:post.dateHeader/>T<data:post.timestamp/></span></abbr></a>

Step 6: Now search again for the below code:

<meta expr:content='data:post.canonicalUrl' itemprop='url'/>

You may find this code 2 or 3 times

Step 7: Add the below code below each of the above codes(step 6):

<a class='timestamp-link' expr:href='data:post.url' rel='bookmark' title='permanent link'><abbr class='published' expr:title='data:post.timestampISO8601' itemprop='datePublished'><span class='updated'><data:post.timestamp/></span></abbr></a>

Step 8: Click on save and you done!

Important Note: Make sure to follow step 5,6 and 7 in the first method of fixing these errors!

If your blog have other errors like img_url, postid, blogid then read How To Fix Google Webmaster Tools Errors In Blogger 


If you still see any problem you can discuss it with me in comments or by contacting me.

If this post helped you then please take a second to share it with others. Follow ans subscribe for latest posts updates. Keep visiting 101Helper :)

Search Tags: How to fix Structured data tools errors in blogger,blogid,postid,headline,image_url,datepublished error fixing tutorial for blogger,Google webmaster tools tutorials for blogger 101helper.blogspot.com


53 comments :

  1. Excellent post , I was desperate to find the solution to this problem and worked fine , thanks

    ReplyDelete
  2. You made it very simple to fix these two problems. Thanks very much Fahim.

    ReplyDelete
    Replies
    1. You are welcome... I glad it helped you.

      Delete
  3. Thanks for the post! It worked perfect!

    ReplyDelete
    Replies
    1. You are welcome... Please use your Google+ profile to comment next time.

      Delete
  4. Unfortunately it did not work for me. I did all the steps but the structured data testing tool still gives me the "datepublished: missing and required" error...any advice?

    ReplyDelete
    Replies
    1. Yes go to template and apply simple template to your blog then try again it will work.

      Delete
    2. I am using the simple template but still get the error. See here: www.beauty4free2u.com

      Delete
    3. Thanks Siss Nuthman for feedback... I have updated my article and added a second method to fix these errors, read it to fix your errors I hope it will work for you now..... Follow each of the steps carefully!

      Delete
    4. Oh Thank you so much for your help Fahim. This worked as I have no errors anymore in the structured data testing tool. But now I have another problem: All my blog posts show now the date header and the timestamp which really looks ugly. What can you recommend to me?

      Delete
    5. I actually would like to hide the timestamp because the date header is much prettier. Any idea how to do it without that I am getting again an error in the Webmaster tools?

      Delete
    6. Yes you can hide it by adding below code below < .head > in your template:

      < style >
      abbr.published {
      display: none;
      }
      < /style>

      Delete
  5. Ha- I noticed there is a "T" inside the code which interrupts the look of my date also. Gotta find that T and delete it in my html code. ;-)

    ReplyDelete
    Replies
    1. I am glad this post helped you sissi if you have any questions ask me! and don't forget to share this post...

      Delete
    2. If you want to hide the dates on your website just add this code:

      < style >
      abbr.published {
      display: none;
      }
      < /style>

      below < head> in your template.

      Delete
    3. Thank you so very much Fahim! I am gonna share this link now to 2 forums that weren´t able to help me! Maybe this helps you! ;-) Hope you have a fabulous day!

      Delete
    4. One more question: will the code above hide the timestamp or the date header? I would rather have the date header visible then the timestamp (also my pages show now the timestamp and that does not make sense lol).

      Delete
    5. This code will hide the date header and you site will look more good if you do so!

      Delete
  6. Assalamualaikum Fahim, Jazak ALLAH some of problem fixed by following your methods above but the probelem with this note "image: missing and required" it is saying image and not image_url".
    Other problem is why everytime I made Headline (h2) as my headline post it is always create "line" long line under the Headline. I really need your advice to fix it. Jazak ALLAH

    Your Indonesian Sister

    ReplyDelete
    Replies
    1. Wsalam dear... thanks for your feedback I recommend you to read this post http://101helper.blogspot.com/2015/03/how-to-fix-google-webmaster-tools-errors.html to fix "image" error and the problem of a long line maybe is some CSS problem. Please give me link of your blog. I will check your blog and give you solution to fix it.

      Delete
    2. This is the link of my blog http://www.stockuang.com/ dear Fahim

      Delete
    3. I checked this and there is no error.. You can also check it by this link https://developers.google.com/structured-data/testing-tool/

      Delete
    4. Then why its always showing a line. It is appear like for example on your title here "Fixing "Headline And Datepublished Missing And Required" In Blogger" then the line appear. By the way there is no meta expr:content='data:post.firstImageUrl' itemprop='image_url'/ The problem with image still there, when I hover it, its shown A value for the image field is required.

      Delete
    5. But I can't see any error in webmaster testing tool and that line is because of the template you are using.

      Delete
    6. I see, ok then dear brother. Thank you very much for your helps :)

      Delete
  7. Can i change my timestamp to this format "Saturday, August 15, 2015", and how ?

    ReplyDelete
    Replies
    1. Yes you can..... just follow step 5 to step 8 in method 1 of this post

      Delete
    2. I think it should not be, because it will result in all post into the same date, You just change timestamp with "dateHeader" without quotes.
      look on my wall and look video to fix this issue, I think it will help you

      Delete
  8. Replies
    1. Thanks for your feedback Angela petric

      Delete
  9. Thanks a lot, that worked perfectly!

    ReplyDelete
  10. you are very good .. thanks you help me : )

    ReplyDelete
  11. Solved all my website hatom issues. Thank you! I also wanted to hide the date, I was wondering how. Good thing you posted that code.

    ReplyDelete
    Replies
    1. You are welcome Eeva i am glad you found this post helpful. Share with others to spread it :)

      Delete
  12. Hi!
    I need your help.
    I have h3 class=....
    With "headline" at the end but still got an error message that headline missing and required.
    What to do with it?

    And a few more errors "publisher missing and required", "MainEntityOfPage missing..." and "image - The attribute itemtype has an invalid value".

    Can you advise how to fix it?

    ReplyDelete
    Replies
    1. Hi dana try to replace h3 with h1 and after that check again if it still show you the same error then reinstall your template. And if you see other errors even by following this post then leave them because these are updated schema by google to show posts in news or as a suggestion to searcher so if they are extra error forget them. Changing template and following this post again may help you..

      Delete
  13. Thank you for this post! It helped me so much! :)

    ReplyDelete
  14. how do we do the image url? please help

    ReplyDelete
  15. You made my day, thanks for this post. Please check out some more information regarding what is serps.

    ReplyDelete