Center text and drop down arrow in collapsible content headers dawn theme

Solved

Center text and drop down arrow in collapsible content headers dawn theme

JordiP
Excursionist
45 0 8

Hello,

 

How can I center the headers in my collapsible content, and also I want to center the dropdown arrows along with it.

 

Screenshot 2024-10-02 at 22.07.38.png

(^ I want the text and arrows centered)

 

Store: https://bb9f8c-ac.myshopify.com/en/products/tribal-vibe

Pass; pongia

Accepted Solution (1)

Moeed
Shopify Partner
5783 1569 1863

This is an accepted solution.

Hey @JordiP 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
.accordion summary {
    justify-content: center !important;
}
summary .icon-caret {
    position: relative !important;
    top: 7px !important;
    left: 10px !important;
}
}
</style>

RESULT:

Moeed_0-1727900521609.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

 

- Get a quick Shopify quote – Click here!

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 3 (3)

Moeed
Shopify Partner
5783 1569 1863

This is an accepted solution.

Hey @JordiP 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
@media screen and (min-width: 768px) {
.accordion summary {
    justify-content: center !important;
}
summary .icon-caret {
    position: relative !important;
    top: 7px !important;
    left: 10px !important;
}
}
</style>

RESULT:

Moeed_0-1727900521609.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

 

- Get a quick Shopify quote – Click here!

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications


JordiP
Excursionist
45 0 8

Thank you!

Moeed
Shopify Partner
5783 1569 1863

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Get a quick Shopify quote – Click here!

- Need a Shopify Specialist? Chat on WhatsApp

- Custom Design | Advanced Coding | Store Modifications