FROM CACHE - jp_header

Change the text on the breadcrumbs

harukajmickey
Shopify Partner
119 0 9

Hi I am using the breadcrumbs.

 

{% 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">&rsaquo;</span>
        <span class="text-xs">{{ page.title }}</span>
    {% elsif template == 'blog' %}
        <span class="text-gray-400" aria-hidden="true">&rsaquo;</span>
        {% if current_tags %}
        {{ blog.title | link_to: blog.url }}
        <span class="text-gray-400" aria-hidden="true">&rsaquo;</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">&rsaquo;</span>
        {{ blog.title | link_to: blog.url }}
        <span class="text-gray-400" aria-hidden="true">&rsaquo;</span>
        <span class="text-xs">{{ article.title }}</span>
    {% else %}
    <span class="text-gray-400" aria-hidden="true">&rsaquo;</span>
    <span class="text-xs text-gray-400">{{ page_title }}</span>
    {% endif %}
    </nav>
{% endunless %}

 

 How can I apply the h2 title on the breadcrumbs in stead of "NEWS"?

https://u20fo1fsqriynysh-57309069474.shopifypreview.com/blogs/news

 

 

スクリーンショット 2023-10-13 13.27.33.png

 

 

Thank you in advance!

 

0件の返信0