Media with text - center button on mobile

Solved

Media with text - center button on mobile

pongopetfood
Excursionist
42 0 13

Hello, 

 

On my prestige theme, I added a "Medias with text" section, but on mobile view the button is not in the center, how to place it on the center (mobile view) ? 

Thanks 

 

Capture d’écran 2024-07-04 à 11.18.26.png

Accepted Solution (1)

Moeed
Shopify Partner
6986 1884 2302

This is an accepted solution.

Hey @pongopetfood 

 

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 (max-width: 767px) {
.button-group {
    justify-content: center !important;
}
}
</style>

RESULT:

Moeed_0-1720085255904.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Reply 1 (1)

Moeed
Shopify Partner
6986 1884 2302

This is an accepted solution.

Hey @pongopetfood 

 

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 (max-width: 767px) {
.button-group {
    justify-content: center !important;
}
}
</style>

RESULT:

Moeed_0-1720085255904.png

 

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

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications