Shopify themes, liquid, logos, and UX
Hi, I need help centering the text in the collapsible row dropdown box. I already figured out how to center the header title in the collapsible row, but in the dropdown box text.
Can someone help me, please?
Solved! Go to the solution
This is an accepted solution.
Hi @Hannahshin
You can make the text center by adding this CSS code.
.accordion__content { text-align: center; }
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- 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.
Hello @Hannahshin ,
Can you please share the store URL?
Regards
Guleria
@Hannahshin Your store is password protected, please also provide the password to view the store front.
Hi @Hannahshin
Please share your store link and provide a password if available
This is an accepted solution.
Hi @Hannahshin
You can make the text center by adding this CSS code.
.accordion__content { text-align: center; }
- Solved it? Hit Like and Accept solution! ❤️Buy Me Coffee❤️
- 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.
oh my gosh! This worked! Thank you so much for your help!
Solved! Thank you so much for your help! I was struggling for almost 3 hours with this problem.
Hi @Hannahshin,
Please go to Actions > Edit code > Assets > section-main-product.css file and paste this at the bottom of the file:
.product__accordion .accordion__content {
text-align: center;
}
Hey! I can help with that. To center the text in the dropdown box of your collapsible row in the Dawn theme, you'll need to adjust the CSS for the dropdown content specifically. Here's how you can do it:
Log in to Shopify Admin:
Find the CSS File:
Add Custom CSS: Add the following code at the bottom of the file:
.product__accordion .accordion__content {
text-align: center; /* Centers the text in the dropdown */
}
This will center the text within the collapsible row dropdown.
Save and Test:
If you're looking for a simpler way to make this change visually, you can use EasyEdits. It allows you to make these types of style changes without needing to write code. You can edit directly on your store and preview the changes in real time. Plus, you can make edits during the free trial and keep them forever if you don't decide to continue with the app.
Let me know if you need more help or if something isn't working! (By the way, I’m the developer of EasyEdits, so feel free to ask about it 😊).
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024