How to create an e-commerce breadcrumb on Webflow?

Tutorial
March 20, 2023
3 min
Webflow logo with a view of a breadcrumb snippet on an e-commerce site and a shopping bag
Key points

Today, we will explore how to organize the information architecture of your website. We will see how we can offer a better user experience (UX) through relationships between products and CMS collections.

Indeed, it is important—if not crucial—for an e-commerce site to organize the many products it contains. To organize the information, you can add tags to your products. This way, users will be able to navigate your online catalog more easily and quickly.

This navigation format is called "Breadcrumb." It refers to the Greek mythology where Ariadne (daughter of Minos, king of Crete) gave Theseus (her lover) a ball of thread to help him find his way in the labyrinth that housed the Minotaur.

Today, we use this expression to denote a guiding path. On a website, the breadcrumb serves as a visual aid to help users understand which page they are on. It is a navigation system that allows for the identification of a site's structure.

Example of a Breadcrumb on an E-commerce site
Example of a Breadcrumb on an E-commerce site


Before we start, you need to have a clear vision of your e-commerce site's architecture. You can visually set up this e-commerce architecture using Miro. Once you know how to link your categories, subcategories, and products, you can head over to Webflow.

Step 1: Access Your Project

Go to Webflow and access your online store project.

Dashboard All Projects on Webflow


Step 2: Create Your Categories and Subcategories

For this second step, navigate to the "CMS Collection" section.

Then, you will create a new collection that you will name "Category," for example.

Do the same for subcategories, with the only difference being that you will need to add a custom field “Reference”: Name it “Category” (if you previously named the collection “Category”) and select the collection you created earlier (In our example: “Category”).

Creating category and subcategory collections from Webflow's CMS


Step 3: Your Product Settings

In your product settings, you will add 2 new custom fields “Reference.” The first will be for your “Category” collection, and the second for your “Subcategory” collection. Be sure to check the box “This field is required.”

Creating Custom Fields Reference Category and Subcategory in Webflow's ecommerce products


Step 4: Add Categories and Subcategories to Your Products

In the Ecommerce - Products page, edit your products to add the categories and subcategories you previously defined in Webflow's CMS section. Since the custom fields are “Reference” and not “Multi-Reference,” each product belongs to 1 category and 1 subcategory. However, in Ecommerce - Categories, you can insert categories and assign them to several products to showcase similar items on your pages.

Choosing categories and subcategories for a product on Webflow's ecommerce


Step 5: Formatting the Breadcrumb on the “Products Templates” page

You will need to create a Flexbox with 4 links separated by a symbol (In our example, we opted for the symbol “>”).

You can rename the first link “Home,” “Store,” or any name you prefer (This will be the link that redirects to your homepage). Then go to the “Links settings,” select “Page,” and choose the “Home” page.

Creating the homepage Link on the Breadcrumb of Webflow


For the second link, still in the “Links Settings,” you will select not “Page,” but “Collections Page.” Then, select “Category” (or the name of your first collection) in “References.” Finally, in “Get text from,” scroll down to “Custom Fields,” and select “Name” from “Category.”

Creating the Categories Link on the Breadcrumb of Webflow


For the third link, repeat the same process, but for the “Subcategories.”

Creating the Subcategories Link on the Breadcrumb of Webflow


Finally, for the last link, select in “Page Collection,” “Current Product.” And in “Get text from,” choose “Name” from “Basic Info.”

Creating the Products Link on the Breadcrumb of Webflow


Here's a preview once the modifications are published in our example:

Example of setting up a breadcrumb on a webflow ecommerce site


Step 6: Repeat the Process for Your Various Pages

Now, you can reuse the same process for your different dynamic pages: Category Templates, Subcategory Template (Note: for categories, there will only be 2 levels, and 3 for subcategories). Similarly, you can repeat the operation for your static pages.

Bonus: Use Structured Data for Your SEO

To go further and to comply with SEO best practices, you can add structured data dedicated to the breadcrumb on your site. This will take the form of a JSON-LD code within an HTML Script tag. You can reflect your site's architecture (Category - Subcategory - Products) along with their positions.

<script type="application/ld+json">
{
  "@context": "https://schema.org/", 
  "@type": "BreadcrumbList", 
  "itemListElement": [{
    "@type": "ListItem", 
    "position": 1, 
    "name": "Digidop Store : Télephone",
    "item": "https://example.com/telephone"  
  },{
    "@type": "ListItem", 
    "position": 2, 
    "name": "Digidop Store : Smartphone",
    "item": "https://example.com/telephone/smarphtone"  
  },{
    "@type": "ListItem", 
    "position": 3, 
    "name": "Digidop Store : Iphone 13",
    "item": "https://example.com/telephone/smarphtone/iphone13"  
  }]
}
</script>


For more information, you can check out the article from Google Search Central on breadcrumbs. Otherwise, Digidop can also assist you with your Webflow projects while adhering to SEO best practices.

Thibaut Legrand
Thibaut Legrand
Technical Solutions Architect & Webflow Expert

Suggested articles

Webflow Localization, Credial's Use Case
Documentation
Webflow

Webflow Localization: Practical Guide & Credial's Use Case

Webflow Localization: Practical Guide & Credial's Use Case
Visuel showcasing digidop.fr switching to digidop.com
News
Digidop

Digidop.fr is now Digidop.com

Digidop.fr is now Digidop.com
Photo of the Digidop team with the Digidop Logo 2024
News
Digidop

A Look Back at an Exceptional 2024 and Vision 2025

A Look Back at an Exceptional 2024 and Vision 2025

Want to turn your website into your most valuable asset?

Contact us today