Thursday, August 02, 2018
Error: headline structured data error
Solution:-
Download your working Blogger template.
You may open the new copy with a text editor and search for all instances of class='post-title entry-title'
The code ('post-title entry-title') will be appear in two places, change itemprop='name' to itemprop='headline'
Original code:
<h3 class='post-title entry-title' itemprop='name'>
Finished code:
<!-- Commented code:
<h3 class='post-title entry-title' itemprop='name'>
End Commented code:-->
<h3 class='post-title entry-title' itemprop='headline'>
Once you will do the same as mentioned above. Please recheck the issue using 'Structured Data Testing Tool'.
A Value For The Publisher Field Is Required For Blogger
Error becomes appear while you have checked the blog with Google Structured Data Test tools. To resolve the issue 'A Value For The Publisher Field Is Required For Blogger' follow the below steps to make error free you blogs.
These problems will shows as 'a value for the publisher field is required' and 'a value for the author field is required'.
Solution:-
Just click on your theme of your blogger.
Click on 'Edit HTML' of theme.
look the code <data:post.body/>
you must copy below code and past it below of <data:post.body/> on to your blogs. Make sure change the url 'https://your-blog-name.blogspot.com' with your actual blog url.
<div itemprop='publisher' itemscope='itemscope' itemtype='https://schema.org/Organization'>
<div itemprop='logo' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>
<img style='display:none;' src='https://your-blog-name.blogspot.com'/>
<meta itemprop='url' content='https://your-blog-name.blogspot.com'/>
<meta itemprop='width' content='600'/>
<meta itemprop='height' content='60'/>
</div>
<meta itemprop='name' expr:content='data:blog.title'/>
</div>
Once you have done it , It will look like as below.
<data:post.body/>
<div itemprop='publisher' itemscope='itemscope' itemtype='https://schema.org/Organization'>
<div itemprop='logo' itemscope='itemscope' itemtype='https://schema.org/ImageObject'>
<img style='display:none;' src='https://your-blog-name.blogspot.com'/>
<meta itemprop='url' content='https://your-blog-name.blogspot.com'/>
<meta itemprop='width' content='600'/>
<meta itemprop='height' content='60'/>
</div>
<meta itemprop='name' expr:content='data:blog.title'/>
</div>
Then click on 'save theme' botton.
After changes the code go back to Google Structured Data Testing .
The dateModified field is recommended
<div class='post entry uncustomized-post-template' itemscope='itemscope'
itemtype='http://schema.org/BlogPosting'>
When You Fixing Error of ''datePublished: missing and
required''
Change Code itemprop='datePublished'
To
itemprop='datePublished dateModified'
Fix : blogId and postId structured data errors
Solution:-
Download working blogger template.
Edit the theme to resolve the blogId and postId structured data errors.
Search for all instances of itemprop='blogId' (and or) itemprop='postId'
copy and paste below code.
Original code:
<meta expr:content='data:blog.blogId' itemprop='blogId'/>
<meta expr:content='data:post.id' itemprop='postId'/>
Updated code:
<!-- Commented section
<meta expr:content='data:blog.blogId' itemprop='blogId'/>
<meta expr:content='data:post.id' itemprop='postId'/>
End Commented section -->
<meta expr:content='data:blog.blogId'/>
<meta expr:content='data:post.id'/>
Save your Template and test again with the Structured Data Testing Tool.
Once you will the same as mentioned above issue will resolve the blogid and postid error from your blogger blog.
Subscribe to:
Comments (Atom)

