Custom title on 'all products' page but not collections

Hi there.

Is it possible to have a title just for the ‘collections all’ page? At the moment it is ‘Products’ and when you view a collection page, it shows the name of the collection.

I am able to change the title in main-collection-banner.liquid but this changes it on all the collection pages as well.

Having a title of products doesn’t work for us but I don’t want to lose the collections having their title.

I almost need:

if page is > collections all > then title is > ‘All stock’

if page is > single collection> then title is > collection.title

Hopefully this makes sense.

Thanks

Hi @ForstGlobal ,

We’ve carefully checked your website and found your problem quite complicated. So we suggest hiring a developer.

It’s what we can help with an optimal solution. If you need help from our expert, kindly share your request with us via Shopify experts: https://experts.shopify.com/bss-commerce/services?utm_source=Shopify+Community&utm_medium=Post+reply&utm_campaign=_

We will check it and give you a detailed solution. We’re looking forward to working with you.

To anyone landing here with the same question, this is the solution:

Edit your collection template file, and add this

{% if collection.handle == 'all' %}
  Your custom title here
{% else %}
  {{ collection.title }}
{% endif %}