Why are my Buttons Not Centered in Banner Section?

Solved

Why are my Buttons Not Centered in Banner Section?

mollybluesh
Tourist
8 1 8

I want two buttons included in my banner section. But obviously I want them centered. I cannot figure out how to keep them centered, they just keep automatically shifting left which looks ridiculous. Please help!

 

TIA!Screen Shot 2024-10-18 at 1.21.53 PM.png

Accepted Solution (1)

Moeed
Shopify Partner
5781 1569 1861

This is an accepted solution.

Hey @mollybluesh 

 

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>
.banner__box.color-background-1 {
    text-align: -webkit-center !important;
}
</style>

RESULT:

Moeed_0-1729272576092.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
5781 1569 1861

This is an accepted solution.

Hey @mollybluesh 

 

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>
.banner__box.color-background-1 {
    text-align: -webkit-center !important;
}
</style>

RESULT:

Moeed_0-1729272576092.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


mollybluesh
Tourist
8 1 8

THANK YOU!!!

Moeed
Shopify Partner
5781 1569 1861

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