Dawn Theme, Change Collection Title

Dawn Theme, Change Collection Title

JohnAllen439
Visitor
2 0 0

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
658 56 127

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

-Need a Shopify developer?
https://rajatweb.dev/

Email: rajat.shopify@gmail.com

Dan-From-Ryviu
Shopify Partner
11326 2219 2389

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

- Found this helpful? Hit "Like" and "Accept as Solution"! - Feeling generous. Buy me coffee!
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
Built for Shopify

Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.