@chasity.halvorson To set breadcrumbs for an article in schema.org, you will need to include the BreadcrumbList itemtype in your article markup. The BreadcrumbList should consist of a list of items with a sub-list of each item’s associated properties. For example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<div itemscope itemtype="https://schema.org/BreadcrumbList"> <span itemprop="itemListElement"> <a itemscope itemtype="https://schema.org/ListItem" itemprop="item" href="https://example.com/category/"> <span itemprop="name">Category</span> <meta itemprop="position" content="1" /> </a> </span> <span itemprop="itemListElement"> <a itemscope itemtype="https://schema.org/ListItem" itemprop="item" href="https://example.com/category/sub-category/"> <span itemprop="name">Sub-Category</span> <meta itemprop="position" content="2" /> </a> </span> <span itemprop="itemListElement"> <a itemscope itemtype="https://schema.org/ListItem" itemprop="item" href="https://example.com/category/sub-category/article"> <span itemprop="name">Article</span> <meta itemprop="position" content="3" /> </a> </span> </div> |
@chasity.halvorson
In the code snippet above, the breadcrumbs are set using the schema.org vocabulary. Here's a breakdown of how it works:
Repeat steps 2-7 for each breadcrumb item in the sequence, updating the href
, display text, and position accordingly.
By using this schema.org markup, you are providing search engines with structured data about the breadcrumb navigation on your article page, which can help improve the visibility and understanding of your content.
@chasity.halvorson
Yes, that's correct! By following the schema.org markup for breadcrumbs, you provide search engines with structured data that improves the visibility and understanding of your article's navigation. Implementing breadcrumbs can also enhance the user experience by providing easy navigation and context within your website.
Make sure to adjust the href attribute values in the code snippet to match the actual URLs of your article's categories, sub-categories, and articles. You can add or remove the elements and update the values based on your specific breadcrumb structure.
Remember to place this code snippet at the appropriate location in your article's HTML markup, such as before the article content or within the header section.