Remove headline related error appearing during Structured data testing
So your blog has structured data and now want to make sure that the web crawlers should also understand that you have placed structured data on your blog. The best way to make sure that is to test your blog URL using https://search.google.com/structured-data/testing-tool. This is not a validator of the tags in your blog but a tool, using which Google makes sure it can read structured data from the page and if required can appear as a rich card in a search result.
If you have a blog on Blogger and have validated it using the Google structured data testing tool, there are chances that you might have seen below error:
A value for the headline field is required.
Below are the steps to how to remove headline related error appearing during Structured data testing.
- Go to Blogger.com
- Select the Blog in which you want to make the change.
- Click "Template" in the left menu.
- Click on "Edit HTML"
- Once the HTML editor appears, click inside the editor and press Ctrl+F. This will show a search box appear on the top right corner of the editor as below:
- Paste the following code in the search box and hit enter to find it.
<h2 class='post-title entry-title' itemprop='name'>
The tag could be h1 or h2 or h3 - Just replace itemprop='name' with itemprop='headline' in the code found. The code could appear twice in template.
- Save the template.
You can again test your blog URL at https://search.google.com/structured-data/testing-tool. This time the error for headline will not appear.
Below are the links to fix other errors ad warnings appearing during structured data testing:
A value for the headline field is required.A value for the url field is required.
A value for the image field is required.
A value for publisher field is required.
The dateModified field is recommended. Please provide a value if available.
The mainEntityofPage field is recommended. Please provide a value if available.
The property postId is not recognised by Google for an object of type BlogPosting.
The property blogId is not recognised by Google for an object of type BlogPosting.