Need help changing breadcrumbs code to accommodate sub categories

New Member
2 0 1



I am currently using the Broadcast theme. I had created categories such that they show Category > Sub Category > Sub Sub Category. But the breadcrumb set up on the theme only shows the previous collection when clicked on a product. I want to create breadcrumbs such that they show the Home > Category > Sub Category > Sub Sub Category > Product when clicked on a product. The following is the code I found in Snippets section product.liquid. I think making changes to the code can achieve the above breadcrumb setup.


{%- if section.settings.show_breadcrumbs -%}
<nav class="breadcrumbs">
<a href="{{ shop.url }}">{{ 'general.breadcrumbs.home' | t }}</a><span class="breadcrumbs__arrow">{% include 'icon-arrow-right' %}</span>

{% if template contains 'product' %}
{% assign first_collection = product.collections[0] %}
{% if first_collection.handle != blank %}
{{ first_collection.title | link_to: first_collection.url }}
<span class="breadcrumbs__arrow">{% include 'icon-arrow-right' %}</span>
{% endif %}


Could anyone help me with this?

Shopify Partner
895 121 159

Hello, @manikanth  Thanks for post.
Please share your site URL,
So I will check and provide a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on regarding any help
Shopify Expert | Skype :
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing