Dawn Theme, Change Collection Title

Topic summary

A user is trying to change the default “Products” collection title in Shopify’s Dawn theme and wants to understand where the collection.title variable gets its value from.

Source of the Title:

  • The collection.title variable pulls from the collection’s title set in Shopify Admin (Products → Collections)
  • For the /collections/all page, Shopify dynamically assigns “Products” as the default title—this isn’t stored in JSON files

Solutions Provided:

  1. Edit in Theme Settings: Navigate to Admin → Online Store → Themes → Edit default content, then search for “Products” to modify the text

  2. Override in Liquid Code: Add conditional logic in main-collection-banner.liquid to check if collection.handle == 'all' and display a custom title

  3. Hardcode (not recommended): Replace the variable with a static string directly in the template

The discussion remains open with multiple viable approaches offered, ranging from admin-level changes to code modifications.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

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.

  1. 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:
# 
    {{ 'sections.collection_template.title' | t }}: 
    {% if collection.handle == 'all' %}
        All Products
    {% else %}
        {{ collection.title | escape }}
    {% endif %}

  • 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

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|1294x524](upload://u6Xs5LMtu0AUw9LIx9dkLsJAR2z.png)