Media with text - center button on mobile

Solved

Media with text - center button on mobile

pongopetfood
Excursionist
36 0 10

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
4359 1123 1377

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


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️

View solution in original post

Reply 1 (1)

Moeed
Shopify Partner
4359 1123 1377

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


- Custom Design | Advanced Coding | Store Modifications
- Your Coffee Tip and my code, A perfect blend. ❤️