Google has recently announced the end support for data-vocabulary from April 6, 2020! With the increasing usage and popularity of http://schema.org they have decided to focus our development on a single scheme. As of April 6, 2020, http://data-vocabulary.org markup will no longer be eligible for Google rich result features. You can read more about this news on google's official blog, through below link.
Since our blogger templates are supported with breadcrumb navigation they need to be fixed, our latest generation themes are well supported with schema.org markup but 2nd generation and older themes, doesn't contains this functionality, so here is a quick and easy tutorial about, How To Fix “data-vocabulary.org schema deprecated” Error In Blogger.
Finding and fixing the code.
Now this is a crucial step and you need to carefully do this, otherwise, you won't be able to fix the issue and your template will not save. You need to find this code and replace it with below code. so we will change it with original code for proper markup validation. In the template, search for the below code.
<div class='breadcrumbs' xmlns:v='http://rdf.data-vocabulary.org/#'> <span typeof='v:Breadcrumb'><a class='bhome' expr:href='data:blog.homepageUrl' property='v:title' rel='v:url'>Home</a></span> <brc>/</brc>Once you will find the code, replace it with below code.
<b:if cond='data:post.labels'>
<b:loop values='data:post.labels' var='label'>
<b:if cond='data:label.isLast == "true"'>
<span typeof='v:Breadcrumb'>
<a expr:href='data:label.url' rel='tag'><data:label.name/></a></span>
</b:if>
</b:loop>
<b:else/>
Unlabelled
</b:if>
<brc>/</brc> <span><data:post.title/></span>
</div>
Note:- Highlighted part will help you to find the code, as smaller codes are easy to search. If you don't know how to find specific code, then follow this tutorial.
<div class='breadcrumbs'> <span><a class='bhome' expr:href='data:blog.homepageUrl'>Home</a></span> <brc>/</brc> <b:if cond='data:post.labels'> <b:loop values='data:post.labels' var='label'> <b:if cond='data:label.isLast == "true"'> <span> <a expr:href='data:label.url' rel='tag'><data:label.name/></a></span> </b:if> </b:loop> <b:else/> Unlabelled </b:if> <brc>/</brc> <span><data:post.title/></span> </div> <script type='application/ld+json'> { "@context": "http://schema.org", "@type": "BreadcrumbList", "@id": "#Breadcrumb", "itemListElement": [{ "@type": "ListItem", "position": 1, "item": { "name": "<data:messages.home/>", "@id": "<data:blog.homepageUrl.jsonEscaped/>" } },{ "@type": "ListItem", "position": 2, "item": { "name": "<b:if cond='data:post.labels'><data:post.labels.last.name/></b:if>", "@id": "<data:post.labels.last.url.jsonEscaped/>" } },{ "@type": "ListItem", "position": 3, "item": { "name": "<data:post.title/>", "@id": "<data:post.url.jsonEscaped/>" } }] } </script>
0 Comments