Hi. I did activate the PRO version yesterday and none of the newly available schema Templates seem to be suitable for my product collections page.
I appreciate your support but all your answers are cryptic to me. I don’t have experience with schema markup and I don’t have in house developers so I have to come up with some solution for those pages.
The procedure to create a template is straight forward but it’s useless if I don’t know what to add or not if I don’t see an example at least.
I also don’t know how the plugin maps content of the page with the markups of the schema itself. Can you provide some documentation about that? Maybe if I understand how the plugin works I can infer how to create the schema template.
So to wrap up I’m aiming to obtain from you an example of the template I need or something that helps me put the dots together.
Thanks
Hello,
You can simply import the code shared by my colleague on your product category page:
{
"@type": "CollectionPage",
"@id": "http://mydomain.com/accessories/#webpage",
"url": "http://mydomain.com/accessories/",
"name": "Accessories - Rank Math PRO - WooCommerce",
"isPartOf": {
"@id": "http://mydomain.com/#website"
},
"inLanguage": "en-US",
"breadcrumb": {
"@id": "http://mydomain.com/accessories/#breadcrumb"
}
}
Once imported, please change the http://mydomain.com/accessories/ with the URL of your collection page. You can use the import tab of the Schema Generator to import the Schema directly to the page. https://rankmath.com/kb/import-schema-markup/
You don’t need to add any additional properties to the page as this is enough to let Google know that it is a collection page. And for the category pages, you don’t need any other Schema other than the CollectionPage and the default ones that our plugin will automatically add. You also don’t need to include the product info in the Schema for a category page.
Hope this helps. Let us know if you need any other assistance.
Ok, but do I need to create only one schema and that would apply to all my collections? As per what I see I have to enter some URLs and I am not sure if the URL should be that specific one for the collection itself or the page that contain all collections.
The sample collection page that google is complaining about is: “https://us.mydrap.com/collections/vivo-collection-napkins/”
What about this?
{
“@type”: “CollectionPage”,
“@id”: “https://us.mydrap.com/collections/vivo-collection-napkins/”,
“url”: “https://us.mydrap.com/collections/vivo-collection-napkins/”,
“name”: “Collections – MY DRAP – Vivo Collection”,
“isPartOf”: {
“@id”: “https://us.mydrap.com/collections/”
},
“inLanguage”: “en-US”,
“breadcrumb”: {
“@id”: “https://us.mydrap.com/collections/#breadcrumb”
}
}
My doubt is because I see the code above too specific for one collection and I’d rather have only one Schema template that I can use for every of my collections.
Hello,
You can use the %url% variable to create a template and apply it to all the collection pages. The variable will fetch the URL of the page and add it to the Schema:
{
"@type": "CollectionPage",
"@id": "%url%#webpage",
"url": "%url%",
"name": "Accessories - Rank Math PRO - WooCommerce",
"isPartOf": {
"@id": "%url%#website"
},
"inLanguage": "en-US",
"breadcrumb": {
"@id": "%url%#breadcrumb"
}
}
Hope this helps. Let us know if you need any other assistance.
Thanks. The code gives me an error for the breadcrumbs
If you see, all the items from number 2 and on they have a ‘name’ property and the first one (the one showing error in Google Console) does not have a name.
typeof="BreadcrumbList" vocab="http://schema.org/">
<!-- Breadcrumb NavXT 7.0.2 -->
<span property="itemListElement" typeof="ListItem"><a property="name" title="Go to MY DRAP." href="https://us.mydrap.com" class="home" >Home</a><meta property="position" content="1"></span><span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to Collections." href="https://us.mydrap.com/collections/" class="collections-root post post-collections" ><span property="name">Collections</span></a><meta property="position" content="2"></span><span property="itemListElement" typeof="ListItem"><span property="name" class="post post-collections current-item">Vivo</span><meta property="url" content="https://us.mydrap.com/collections/vivo-collection-napkins/"><meta property="position" content="3"></span> </div>
</div>
<div id="flexibleCollection">
<div class="collection_presentation">
<div class="row">
<div class="row_text">
<div class="flexcontent">
<h2 class="blocTitle"><span>Vivo</span></h2>
<h6>Collection</h6>
Hello,
The affected Breadcrumbs Schema on the page is not being added by our plugin. The code you have shared is coming from the Breadcrumbs NavXT plugin. You will have to make changes in their settings to fix the error. If you are not able to find the settings that need to be changed, you can get in touch with the support of the Breadcrumbs NavXT plugin and ask them to fix this for you.
Hope this helps. Let us know if you need any other assistance.
Thanks.
Thanks.
I disabled the “Place the home breadcrumb in the trail.” option in NavXT and it seems fixed. I added the comment in case it’s useful for others.
Thanks for everything.
Hello,
We are super happy that your issue has been resolved.
If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.