Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi I have a question about breadcrumbs.
When I go to any blog page, the breadcrumbs shows:
TOP > blog A
Then when I got to article A, the breadcrumb shows:
TOP > article A
How do you show TOP > blog A > article A ???
The code is as follows. Thank you in advance!
{% unless template == 'index' or template == 'cart' or template == 'list-collections' %}
<nav class="breadcrumb leading-6 max-w-6xl px-4 m-auto" role="navigation" aria-label="breadcrumbs">
<a href="/" title="Home" class="arrow-right hover:underline text-xs">TOP</a>
{% if template contains 'page' %}
<span class="text-gray-400" aria-hidden="true">›</span>
<span class="text-gray-400 text-xs">{{ page.title }}</span>
{% elsif template == 'blog' %}
<span class="text-gray-400" aria-hidden="true">›</span>
{% if current_tags %}
{{ blog.title | link_to: blog.url }}
<span class="text-gray-400" aria-hidden="true">›</span>
<span>{{ current_tags | join: " + " }}</span>
{% else %}
<span class="text-xs text-gray-400">{{ blog.title }}</span>
{% endif %}
{% elsif template == 'article' %}
<span class="text-gray-400" aria-hidden="true">›</span>
{{ blog.title | link_to: blog.url }}
<span class="text-gray-400" aria-hidden="true">›</span>
<span class="text-xs">{{ article.title }}</span>
{% else %}
<span class="text-gray-400" aria-hidden="true">›</span>
<span class="text-xs text-gray-400">{{ page_title }}</span>
{% endif %}
</nav>
{% endunless %}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025