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”.
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 *