Display collection title on each collection page

Hello!

I am using Meko medical theme for my store. I am trying to display collection title on each collection page as the default title “Collection” is displayed on all collection pages. Please guide me.

https://admarneuro.myshopify.com/collections/ultrasound-imaging

Password entaug

Hi @Saqib786 ,

Please send me the code of breadcrumb.liquid file or any file with a name related to breadcrumb.

I will check it.

1 Like

@LitExtension Thanks for replying. Here is the code

{% if settings.use_breadcrumb %}
{% unless template == ‘index’%}

{% if template contains 'product' %}

{{ 'general.breadcrumbs.products' | t }}

{% if collection %} {{ 'general.breadcrumbs.home' | t }} / {% if collection.handle %} {% capture url %}/collections/{{ collection.handle }}{% endcapture %} {{ collection.title | link_to: url }} {% endif %} {% else %} {% capture url %}/collections/all{% endcapture %} {{'collections.toolbar.all' | t }} {% endif %}

/
{{ product.title }}

{% elsif template contains ‘collection’ and collection.handle %}
{% if template == ‘list-collections’ %}

{{ 'general.breadcrumbs.all_collections' | t }}

{% else %}

{{ 'general.breadcrumbs.collection' | t }}

{{ 'general.breadcrumbs.home' | t }}

/
{% if current_tags %}
{% capture url %}/collections/{{ collection.handle }}{% endcapture %}
{{ collection.title | link_to: url }}
/
{{ current_tags | join: " + " }}
{% else %}
{{ collection.title }}

{% endif %}
{% endif %}
{% elsif template == ‘blog’ %}

{{ blog.title }}

{{ 'general.breadcrumbs.home' | t }}

/
{% if current_tags %}
{{ blog.title | link_to: blog.url }}
/
{{ current_tags | join: " + " }}
{% else %}

{{ blog.title }}

{% endif %}

{% elsif template == ‘article’ %}

{{ article.title }}

{{ 'general.breadcrumbs.home' | t }}

/
{{ blog.title | link_to: blog.url }}
/
{{ article.title }}

{% elsif template contains ‘page’ %}

{{ page.title }}

{{ 'general.breadcrumbs.home' | t }}

/
{{ page.title }}

{% else %}
{% if template == ‘list-collections’ %}

{{ 'general.breadcrumbs.all_collections' | t }}

{% else %}

{{ page_title }}

{{ 'general.breadcrumbs.home' | t }}

/
{{ page_title }}
{% endif %}

{% endif %}

{% endunless %} {% endif %}

Hi @Saqib786 ,

Please change code here:

Code: {{ collection.title }}

Hope it helps!

1 Like

@LitExtension Thanks, it worked.

1 Like