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?
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:
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”.