Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: How to centre align collection text in Dawn theme

Solved

How to centre align collection text in Dawn theme

Jj37
Excursionist
48 0 6

Hi, 

How can I align the description text of collections in Dawn theme? At the moment, they are all justified left.

https://2c6852-ef.myshopify.com/

pass: aubril

 

Accepted Solutions (2)

Kyle_Poieo-Dev
Shopify Partner
54 6 9

This is an accepted solution.

Hi, @Jj37 

Like this?

Screenshot 2024-06-19 at 2.06.28 PM.png

If so...

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "template-collection.css" file, depending on which file your theme uses to store its CSS styles for collections. look for ".collection__description" and add this to it so it looks like this:

.collection__description > * {
  margin: 0;
}
.collection__description {
  p {
    text-align: center
  }
}

 

 

-

Need a Shopify developer? Send me an Email


- CEO & Lead Developer at Poieo Dev
- Shopify Design Changes | Shopify Custom Coding | Custom Modifications | SEO | E-Commerce Management
Poieo Dev

View solution in original post

Made4uo-Ribe
Shopify Partner
9069 2166 2674

This is an accepted solution.

Hi @Jj37 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.collection__description.body.rte {
    text-align: center;
}

 

And Save. 

Result:

Made4uoRibe_0-1718835044144.png

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 5 (5)

Kyle_Poieo-Dev
Shopify Partner
54 6 9

This is an accepted solution.

Hi, @Jj37 

Like this?

Screenshot 2024-06-19 at 2.06.28 PM.png

If so...

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "template-collection.css" file, depending on which file your theme uses to store its CSS styles for collections. look for ".collection__description" and add this to it so it looks like this:

.collection__description > * {
  margin: 0;
}
.collection__description {
  p {
    text-align: center
  }
}

 

 

-

Need a Shopify developer? Send me an Email


- CEO & Lead Developer at Poieo Dev
- Shopify Design Changes | Shopify Custom Coding | Custom Modifications | SEO | E-Commerce Management
Poieo Dev
alley77
Visitor
1 0 0

is it applicable to shopify sense theme as well? 

Made4uo-Ribe
Shopify Partner
9069 2166 2674

This is an accepted solution.

Hi @Jj37 

Check this one. 

From your Shopify admin dashboard, click on "Online Store" and then "Themes".

Find the theme that you want to edit and click on "Actions" and then "Edit code".

In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

.collection__description.body.rte {
    text-align: center;
}

 

And Save. 

Result:

Made4uoRibe_0-1718835044144.png

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

PageFly-Noah
Shopify Partner
1317 233 277

This is Noah from PageFly - Shopify Page Builder App

 

Hi @Jj37  please add code here to fix it:

Step 1: Online Stores > Themes > Edit code

Step 2: Choose file theme.liquid
Step 3: Add code above the tag </body>

 

<style>
.collection__description p{
   text-align: center !important;
}
</style>

 

Hope my solution will help you resolve the issue.

 

Best regards,

Noah | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


PageFly - #1 Page Builder for Shopify merchants.


All features are available from Free plan. Live Chat Support is available 24/7.

Dan-From-Ryviu
Shopify Partner
10261 2038 2109

Hi @Jj37 

Please add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code 

<style>
.collection-hero__description.rte { max-width: 100% !important; }
</style>

Best regards,

Dan from Ryviu

 

- Helpful? Like and Accept solution! Or Support me: Buy Coffees
- 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: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.