Hi all,
I have tried multiple options but no success with the breadcrumbs. Request you all to help.
Hi all,
I have tried multiple options but no success with the breadcrumbs. Request you all to help.
Hi @AtrangiStudio !
What format of breadcrumbs are you looking at?
Home > ProductType > ProductTitle
for example?
Hi, Thank you for replying.
Yes, I am looking for Home > ProductType > ProductTitle breadcrumb.
Add the following code to the top of your product-template.liquid file:
What you need is a collection for each Product Type with the same name as the Product Type so that the link takes the user to the correct collection.
You can also style the elements with the classes you have above as you wish.
Cheers!
Hey, thank you so much, it worked!
However, could you please also share details as to how to add padding / spacing?
Right now it is sticking to the left corner and to the image at the bottom.
You need to add this code to your theme.css.liquid
.breadcrumb{
margin-left: 45px;
You have to insert this code
Home / {{ product.vendor }} / {{ product.title}}under this class
<div class=âproduct-template__container page-widthâ
id=âProductSection-{{ section.id }}â
data-section-id=â{{ section.id }}â
data-section-type=âproductâ
data-enable-history-state=âtrueâ
data-ajax-enabled=â{{ settings.enable_ajax }}â
>
Then add
.breadcrumb{
margin-bottom: 50px; }
in theme.css
What if your product pages are built using a 3rd part app like Gem Pages?
They have told me that the breadcrumb is part of the header so it wonât work if just added to the produc theme. Iâm still abit new to Shopify so any advise would be appreicated.
Thanks
Antony
Hi,
The breadcrumb seems to have some issue on my website.
Eg - Home>Collection> Product
Whenver I am on the product page, and click the collection part of the breadcrumb, it leads to 404 error. Could you please assist?
Link - http://atrangistudio.com/
I actually combined a few of the answers above to get something to work nicely.
Add this to product-template.liquid :
You can put it in different places. Right under the top first div is common (before the {% comment %}), but I actually put mine after
Also, I removed the second line from the above code, because I only wanted to give them the option of going back up to the products, not all the way home.
Next, add this to theme.css :
.breadcrumb{> margin-bottom: 50px; }
Then, create a collection named âYOUR COLLECTION NAMEâ.
Add all your products to the collection - from collection page.
Set the product type (on the product page for each product) to âYOUR COLLECTION NAMEâ
I found this bit of code that worked beautifully for me. I also have Debut theme.
The only thing I added was:
margin-left: 130px;
margin-bottom: 15px;
I put it within in that first paragrah of code:
.breadcrumbs { margin: 0 0 2em; **margin-left: 130px;** **margin-bottom: 15px;** } Hope this helps!Hey, thank you! However, did not quite understand the last three lines.
Could you please explain again?
Hi, I want to add breadcrumbs to my website http://atrangistudio.com/
Format - Home / Collections / Product
Earlier I was using the below code which was in the format Home / Product Type / Product
Home / {{ product.type }} / {{ product.title}}</spanI want to use âCollectionsâ instead of 'Product Type. Kindly request you to please suggest the necessary change required in the code.
Hi,
How could you do it so that the name of the collections would appear in the breadcrumbs? I am going crazy and I canât get the collections to appear correctly.
It is also important to say that each product is in several collections at the same time, so which collection should shopify choose? Is there any way to tell him which collection he should take?
Thanks,
Hi AtrangiStudio,
I saw that your website now has the right breadcrumb structure you were hoping to create. Are there any tips you could offer to someone looking to create similar changes?
Hi AtrangiStudio,
I saw that your website now has the right breadcrumb structure you were hoping to create. Are there any tips you could offer to me looking to create similar changes?
Hi there,
I saw that AtrangiStudio now has the right breadcrumb structure. Are there any tips you could offer to me looking to create similar changes?
I am having the same problem, please can you explain how you solved it.
Unfortunately, I wasnât able to solve it yet.
How did you solve this issue?