Shopify themes, liquid, logos, and UX
How can I change the Collection Title? Default is "Products".
in main-collection-banner.liquid, I see variable collection.title
Where is this value populated from?
I don't see "Products" default anywhere in my json files. Anyone know where it is?
How can I change collection.title variable? Otherwise, I'll just write a hard string.
Thanks,
<h1 class="collection-hero__title"> <span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span> {{- collection.title | escape -}} </h1>
Hey @JohnAllen439 ,
The collection.title variable is populated from the title of the collection in Shopify. Here’s how it works and how you can change it:
Where collection.title Comes From:
Follow these steps:
1. Collection Admin Settings
- Go to your Shopify Admin → Products → Collections.
- Find the collection you want to change.
- Update the Title field.
2. Automatic Collections (Default "Products" Collection)
- If you're viewing the /collections/all page, Shopify automatically assigns the title "Products" to the collection.
- This default name isn’t stored in JSON files but is generated dynamically by Shopify.
How to Change It:
option 1. Override the Title in Liquid:
- If you want a custom title dynamically, modify main-collection-banner.liquid like this:
<h1 class="collection-hero__title">
<span class="visually-hidden">{{ 'sections.collection_template.title' | t }}: </span>
{% if collection.handle == 'all' %}
All Products
{% else %}
{{ collection.title | escape }}
{% endif %}
</h1>
- This checks if the collection is the "all" collection and sets a custom title.
- Change "All Products" to whatever you prefer.
option 2. Hardcode a Title (Not Recommended)
if you don’t need dynamic updates, you can hardcode the title:
<h1 class="collection-hero__title">My Custom Title</h1>
Would you like help making this dynamic based on different conditions?
If I was able to help you, please don't forget to Like and mark it as the Solution!
If you’re looking for expert help with customization or coding, I’d be delighted to support you. Please don’t hesitate to reach out in my signature below—I’m here to help bring your vision to life!
Best Regard,
Rajat
You can edit that text from your store admin > Sales channels > Online Store > Themes > click "..." in the current theme > Edit default content > search Products, then you can see and edit that text
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...Sign up now.
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025