How to center text collapsible row dropdown text in dawn theme?

Solved

How to center text collapsible row dropdown text in dawn theme?

Hannahshin
Tourist
4 0 2

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?

 

Screenshot 2024-12-09 at 7.08.37 PM.png

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
10793 2133 2251

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.

View solution in original post

Replies 9 (9)

Guleria
Shopify Partner
3953 791 1123

Hello @Hannahshin ,

 

Can you please share the store URL?

 

Regards
Guleria

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder
Hannahshin
Tourist
4 0 2

https://lash101hannah.myshopify.com/

 

Is this what you are looking for? thanks for your help!

Guleria
Shopify Partner
3953 791 1123

@Hannahshin  Your store is password protected, please also provide the password to view the store front. 

- Drop an email   if you are looking for quick fix or any customization
- Email: guleriathakur43@gmail.com Skype: live:navrocks1
- Try GEMPAGES a great page builder

Kyle_liu
Shopify Partner
368 47 62

Hi @Hannahshin 

 

Please share your store link and provide a password if available

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee

Dan-From-Ryviu
Shopify Partner
10793 2133 2251

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.

Hannahshin
Tourist
4 0 2

oh my gosh! This worked! Thank you so much for your help!

Hannahshin
Tourist
4 0 2

Solved! Thank you so much for your help! I was struggling for almost 3 hours with this problem. 

namphan
Shopify Partner
2259 295 331

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;
}
Coffee tips fuels my dedication.
Shopify Development Service
PageFly Page Builder Optimize your Shopify store (Free plan available)
Need help with your store? namphan992@gmail.com

mt686
Shopify Partner
97 11 21

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:


Steps to Center Dropdown Text with Custom CSS:

  1. Log in to Shopify Admin:

    • Go to Online Store > Themes.
    • Click Edit Code on the Dawn theme.
  2. Find the CSS File:

    • Look for theme.css or styles.css in the Assets folder.
  3. 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:

    • Save the file and check your product page or wherever the dropdown appears to ensure the text is centered in the dropdown box.

Easier Option with EasyEdits:

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 😊).