• How To Fix "headline and datepublished missing and required" In Blogger | 101Helper

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

    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,how to fix structured data tools errors in blogger,blogid,postid,headline,image_url,datepublished error fixing tutorial for blogger,a value for the image field is required schema


    77 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
    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. Thanks a lot, that worked perfectly!

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

      ReplyDelete
    10. 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
    11. 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
    12. Thank you for this post! It helped me so much! :)

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

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

      ReplyDelete
    15. h2 class='post-title entry-title' itemprop='name'
      in my case i have changed for h3 will it work

      ReplyDelete
      Replies
      1. Absolutely, it will work. You can even check by using webmaster testing tool in Google webmaster tools

        Delete
    16. Method 2 , step 3: error coming
      Error parsing XML, line 1393, column 9: The element type "b:includable" must be terminated by the matching end-tag ""

      ReplyDelete
      Replies
      1. You must have deleted the closing tag for "b:includable" which is like this

        Delete
    17. i was checking my page speed. can u tell how to deal with Eliminate render-blocking JavaScript.

      ReplyDelete
      Replies
      1. Sorry dear, I don't have a post about it but soon I am going to write about it.

        Delete
      2. you should we not getting much

        Delete
      3. I will write a post about it soon, check back 101Helper for new posts or like on Facebook

        Delete
    18. Hello sir. just want to know about one more error. i am using data highlighter to highlight my post . i some of post while entering url error comes This URL could not be found in Google's index. i have converted that post draft.what should i do. please can i get ur email id.

      ReplyDelete
      Replies
      1. Let Google index it first if you have submitted your blog's sitemap to Google. And here is my Email Fahimraza101@gmail.com

        Delete
    19. Hello friend, I have a weird situation.
      Webmaster tools shows the errors, "missing author, missing updated" for each post in my blog. When I check the blog with Structured Data Testing Tool this does not show any error.

      I thought at first it was a matter of waiting while being updated but I have been a long time with this problem and the more I post new articles these also appear with these errors.

      When I test others of my blogs which have blogger domain and basic templates by default, I don't have this problem, and appear 3 sections of structured data results: "Blog, hatom and blogposting", but in this case with this blog, the structured data test only shows in the results the section "hatom", but does not show either "blog" or "blogposting".
      Generally the "author" error is displayed in "blogspoting" section.

      In this blog I am using a template that I bought, not a default template as in the other blogs, I do not know if this is the reason of the problem.

      I have searched in google but I could not find a way to solve this problem.

      Please help me.

      I do not know if I can write here the url of the website, this way you can check it, or maybe is better send it to you via email with screenshots.

      Many thanks in advance for your response to this message and for your help.

      ReplyDelete
      Replies
      1. Hey, i got what you wanted to tell me and the reason for this is schema markup which is already setup in default templates but as you said you bought that template thats the reason it is showing error because either you don't have schema markup or it is not completely setup. So you need to add schema markup for blogposting etc then these errors will get fixed. You can get more info about schema markup at schema.org If you want me to set it up for you contact me by email or contact page.

        Delete
      2. Hi friend, thanks for your answer. I will red about schema.org to understand what is happening, and if I can not solve it I'll get in touch with you. Thank you very much.

        Delete
    20. Sir Can u post this error plz publisher,image & author its still showing in my website

      ReplyDelete
      Replies
      1. can you please share your website link so that i can analyze it and if i find new errors, I will create posts above them accordingly.

        Delete
    21. My website se wordpress theme , i not find this code in my website https://spacexzone.com/
      how i can fix this error datepublished

      ReplyDelete
      Replies
      1. This tutorial is not for WordPress blogs, Its for blogger blogs.

        Delete
    22. I changed name with headline but not working with me. Please help

      ReplyDelete
      Replies
      1. Follow other methods if one method is not working.

        Delete
    23. I couldn't find the code on the step 4. There is no code like that. (My blog adress is: https://www.ozgeninoltasi.com/)

      ReplyDelete
      Replies
      1. You may not find exact code because every theme code is not same, try to find pieces of code. Still if you don't find, contact me via email I will help you. Email: Fahimraza101@gmail.com

        Delete