Dynamic Shopify Breadcrumbs

Dynamic Shopify Breadcrumbs

Log in or Sign up to ensure access to purchased code across multiple devices.

How to see the code

1. Please log in/create an account first. This is to ensure that all purchases are connected to an account and can be viewed on different devices.

2. Purchase the code using the "purchase box" on the specific page of the desired code.

3. After the purchase, please refresh the page.

Compatibility: All Shopify themes, work best with Shopify 2.0 FREE themes

Several clients have been seeking an effective breadcrumb navigation system that works seamlessly with the CSS styles of Shopify 2.0's FREE themes.

Although a complimentary Shopify breadcrumb code exists, its compatibility with individual themes may vary. Furthermore, there are known challenges with the 'current_tags' feature.

To address this, we have developed a code snippet that can detect the previous URL. If a user navigates from a collection page to a product page, the breadcrumb will display the collection title. In other cases, the assigned collection metafield will be used to display relevant information.

You can check the demo store here. Password: made4uo

 What you are buying:

  • A Shopify breadcrumb section
  • Choose different arrows 
  • Breadcrumb will appear on product, collection, article, and page 
  • Collection title with link will show at the middle when you open a product from the collection page and replaces the assigned collection metafield

What makes our code better:

  • We do not use external libraries, with that being said, our code will have no to minimal effect to your website's speed performance
  • We do not leave or add codes use to advertise for our website
  • Our code is mobile friendly

Any issues related to the code will be fix with no additional cost, excluding code customization requests. Simply contact us with "Chat with us." We are just a button away. 

To create the metafield:

1. In your Admin Page, click Settings on your left hand bottom corner

2. Go to Metafield / Custom Data then Products. Follow the fields below then SAVE.

assigned collection to a product

3. Next, you need to go to your Products. In your Admin page, click Product on the left hand side. Choose the product, then scroll all the way down. You should see the assigned_collection metafield. Choose the collection you want to assign then click SAVE

Shopify breadcrumb metafield image

To start:

1. From your Admin Page, click Online Store > Themes >Actions > Edit code
2. In the Section folder, tcreate a section and name it "shopify-breadcrumbs"
3. Open the newly created section and paste the code below. Make sure to click SAVE.

4. Next, go to the Layout folder, and open the theme.liquid. 

5. Find the  {% section 'header' %}, then add the code below after it.

 

6. Next, go to your theme customizer page. Click the three dots on your left upper hand corner, and choose Customize theme, to customize.

 

That is it (",)

Copied!
Back to blog

2 comments

@ILONKA I believe this is fixed. I would suggest to contact us using “Chat with us” to assist you timely

Made4Uo

Hello,
I just implemented “breadcrumbs”, it works perfectly on product pages or collections. but not so good on blog pages. It shows only “Home” and the blog post, but not in which blog you are (I have two blogs). For example it should be “Home > Puppy Blog > Stay Alone”, instead the display is only “Home > Stay Alone” . Do you have a solution for this? Thank you very much, Ilonka

PS: I have also implemented Infinite Scroll, it works very well, thanks for that.

Ilonka

Leave a comment