How to fix Blog post Breadcrum schema Error ?
SEO Help and Tips
How to fix Blog post Breadcrum schema Error ?
Breadcrum schema Error block the index on google by creating many issues. Here is the corrected Breadcrumb schema example code. You have need to replace with your exisiting code.
<!-- Post Breadcrumbs -->
<script type='application/ld+json'>
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"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.first.name/></b:if>",
"@id": "<data:post.labels.first.url.jsonEscaped/>"
}
},
{
"@type": "ListItem",
"position": 3,
"item": {
"name": "<data:post.title/>",
"@id": "<data:post.url.jsonEscaped/>"
}
}
]
}
});
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Your JavaScript code goes here
});
</script>
Comments
Post a Comment
Thanks for your Comments.