All things Shopify and commerce
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
Solved! Go to the solution
This is an accepted solution.
Hi, @Jj37
Like this?
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
}
}
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:
This is an accepted solution.
Hi, @Jj37
Like this?
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
}
}
is it applicable to shopify sense theme as well?
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:
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.
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.
Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024In today’s interview, we sat down with @BSS-Commerce to discuss practical strategies f...
By JasonH Nov 13, 2024