Trying to centre align collection banner description (Dawn theme)

Topic summary

A user sought help center-aligning collection banner headers and descriptions in Shopify’s Dawn theme—specifically, both elements centered on desktop but only the header centered on mobile.

Solution Provided:
Two respondents shared identical CSS code to add to component-collection-hero.css:

  • .collection-hero__title { text-align: center; }
  • .collection-hero__description { margin: auto; }

The original poster confirmed this solution worked perfectly.

Related Follow-up Issues:

  • One user asked about utilizing more screen space, as text appeared “squished into the middle”
  • Another reported text squished to the left side instead
  • A later user requested help adding a “Read More/Read Less” toggle with a blurred third line for collection descriptions

These follow-up questions remain unresolved in the thread. Multiple users expressed gratitude for the working solution.

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

Hey,

Hoping someone can help me, please!

Currently using Dawn theme. I am trying to centre align the description and header on my collection banner. On desktop I need the header and description centre to align and on mobile just the header needs to be centre aligned.

Mobile: Desktop:

My website is: maleka-uk.myshopify.com/collections/bags Password: Development123

Thanks in advance!

2 Likes

@maleka

you store isn’t inspectable, kindly remove the debug option,
So that we can help you to provide the Solution,

  1. Navigate to Online Store->Theme->Edit code
  2. Asset->/component-collection-hero.cs ->paste below code at the bottom of the file.
  3. Save it.
.collection-hero__title {
	text-align: center;
}
.collection-hero__description {
	margin: auto;
}

Thank you.

5 Likes

@Mr_RaviRaj Apologies, please try again. It should work now - thank you

Hello @maleka , here is your solution:

  1. In your Shopify Admin go to: online store > themes > actions > edit code
  2. Find Asset > component-collection-hero.css.liquid or component-collection-hero.css and paste this at the bottom of the file:
.collection-hero__title {
	text-align: center;
}
.collection-hero__description {
	margin: auto;
}
6 Likes

Thank you @Mr_RaviRaj and @Usman-Ramzan this worked perfectly!

1 Like

@maleka
Let me know if you need any more help,
Thank you

1 Like

Thank you @Mr_RaviRaj

@maleka It’s my pleasure to help you!

Hi, Is there away to use more of screen ? text is all very much squished into the middle ?

1 Like

I have the same problem, but the text is squished into the left side. Did you find a solution to this?

This worked for me, thanks so much!!

1 Like

Stumbled across this. I’ve watched so many videos spent hours trying to do it and this was clearly explained and worked thank you very much : )

1 Like

It’s my pleasure to help you!

Hi Usman,

I’m trying to add a “Read More / Read Less” toggle to the collection description on my Dawn theme store. Currently, the full description is always visible, but I want to:

  • Show only two lines of text initially.
  • Make the third line blurry.
  • Include a “Read More” button that expands the full description when clicked.
  • Include a “Read Less” button to collapse it back.