Add RDFa tags to breadcrumbs#1045
Conversation
Add RDFa tag markup based on schema.org BreadcrumbList
|
@hennell-git thank you for your contribution. Can you please give some information about the 4 errors I see in the screenshot ? |
|
The 4 errors are part of the product markup section - this fix only adds the detected BreadcrumbList section which is error free! (I was actually investigating our product section errors originally, but that's more complex as the product data might not be supplied by the user which leads to the errors above as data is marked but missing - added in the breadcrumbs code first as it's entirely database generated so can't have those same 'missing elements' issues.) |
|
Nice work! Thanks for making this change. I have a question for you. I think we use Microdata instead of RDFa in this project. Is there a reason why you choose to use RDFa? If there isn't a special reason, I'd like to keep the format consistent. |
|
I'd like to say there's a complex technical reason, but it's actually just based on the fact I've only ever used RDFa, and didn't really think about it or notice the existing product tagging was in microdata! No idea if there's any actual significant difference between the two and evidently they can work together, but I'd agree it would make sense for the format to be consistent across the whole project. |
|
Ah ok cool, yeah when you have time, can you please update it? Thanks! |
|
Hey guys, didn't realize this was a thing, and just submitted a json ld update here #1079 |
|
closing in favor of #1175 |

What?
Add the RDFa BreadcrumbList markup to the generated breadcrumbs to help Google (and other web crawlers) understand the shop categories better.
Documentation
Follows the schema.org breadcrumb markup guidelines, and passes Google's structured data testing tool. Both appear to suggest using OL instead of UL for the list element, but it validates as is and sticking with UL seems preferable to avoid potential css issues.
Screenshots


Google's testing tool before the markup - no breadcrumbs only product data detected:
Same page after the markup - breadcrumbs now found: