How can I add a navigation history bar to the Brooklyn theme?

Hey! I’m using the Brooklyn theme and I would like to add on the top of a product page a “bar” that shows the history of pages of the user.. something like: Home>Bestsellers>Product1. And by clicking on for example “Bestsellers” he could go back to that collection. I apologize for not knowing the exact name of this “bar”.

Can you help me please?

Thank you!

What you’re looking for is called a “breadcrumb”. Shopify actually has a tutorial here: https://shopify.dev/tutorials/customize-theme-add-breadcrumbs

That code is great if you want a single breadcrumb section at the top of every single page. But, if you only care about having it on a product page, one thing you could do is modify your product-template.liquid file. Just put something like this above the *

code:


  

    
  

Thank you!! The tutorial is very helpful and if I want it to show at every single page where do I must put the snipped in the theme.liquid code?