All things Shopify and commerce
Hi,
We are using the Testament theme and our default collections include h1s below the breadcrumbs but we had a custom page template called "collection.linklist.liquid" made which shows all our collections on a page but it does not have an h1 and we've been advised that it should have one.
Example of the Linklist page template in action: https://www.petroffgallery.com/collections/ceramic-art
Example of the default collection page with h1: https://www.petroffgallery.com/collections/mariana-bolanos-inclan
I've tried adding: <h1 class="collection__page-title page-title">abc</h1> and while that does work I don't want ABC to show up but rather the name of the Collection for example "Ceramic Art". Can someone explain how to call or reference the page name to have it display it?
Thanks!
Solved! Go to the solution
This is an accepted solution.
Hi @petroffgallery,
To show the collection title on the template with an <h1> tag please use the below code:
<h1 class="collection__page-title page-title">{{ collection.title }}</h1>
I hope this helps. If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions.
Thank you!
Regards,
Abhishek from Swym
This is an accepted solution.
Hi @petroffgallery,
To show the collection title on the template with an <h1> tag please use the below code:
<h1 class="collection__page-title page-title">{{ collection.title }}</h1>
I hope this helps. If my response helped you, please consider giving it a like (👍) and marking it as an accepted solution if it resolved your issue. Your feedback helps other community members with similar questions.
Thank you!
Regards,
Abhishek from Swym
Hi Abhishek,
Thank you very much! I really appreciate your help.
PG
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025