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
8729 2085 2554

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

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
8729 2085 2554

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

PageFly-Noah
Shopify Partner
1317 233 274

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
10028 1997 2042

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 Buy me coffee ❤️
- 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.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.