Re: Dawn Theme, Change Collection Title

Dawn Theme, Change Collection Title

JohnAllen439
Tourist
9 0 2

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>

JohnAllen439_0-1741757366338.png

 

 

Replies 2 (2)

rajweb
Shopify Partner
787 68 145

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

Rajat | Shopify Expert Developer
Need a reliable Shopify developer for your next project?
Our App: Productify Groups App
Email: rajat.shopify@gmail.com
Portfolio: https://rajatweb.dev

Dan-From-Ryviu
Shopify Partner
11632 2279 2462

Hi @JohnAllen439 

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

 Screenshot 2025-03-12 at 14.49.45.png

- 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.