Change H1 title "Products" to "[Collection title name]" on collection pages?

Hi fellow Shopifyers,

I am using the Dawn theme (v15.0.0) and have a store with various Collections set up to group my products.

The collection’s conditions are mostly set to auto-detect for certain Tags, and a few to auto-detect for Vendor names.

I have added some code so the relevant Tags appear on each product page, in the form of a clickable link.

When I click the Tag link it goes to the relevent collection page.

However, on each collection page, the H1 header always displays as ’ Products ’ and not the name of the collection.

Please can you advise me, how do I change this title so it always automatically displays as the name of the Collection at the top of each collection page?

Thank you

1 Like

Hey @Avery_4

In your Shopify Editor open any collection and then add a section of custom liquid at the very top and add the following code in that section.

# {{ collection.title }}

If I managed to help you then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

Hi @Moeed … thank you for trying to help.

Unfortunately this did not seem to work.

Your code did create another section that displayed the Title of the collection page, but it just created another header only consisting of the word Product.

In addition to your markup, I also tried a version that would preserve the CSS padding of the existing styling, as follows:

{{ collection.title }}

… but this was only to match the styling for my theme (Dawn), this did not replace the word Products with the name of the collection.

It seems my collection pages have this URL, in case this is helpful:

www.domian.com/collections/all/radio-control-boats

Any help would be very much appreciated.

Thank you

I found a solution. I had added come custom code to the main-product.liquid file, to display hyperlinked Tags on each product page:

    {% for tag in product.tags %}
  • {{ tag }}
  • {% endfor %}

I removed the all/ from collections/all/ and then added all my remaining Collections to my Navigation.

Each Colection already matched each Tag.

Now when I click on the name of a Tag, it goes to the corresponding collection page, but each page now has the correct H1 title, instead of the word “Products”.