Centre Product Page information only on mobile

Centre Product Page information only on mobile

ellacoker
Shopify Partner
272 1 65

Hello,

Is someone please able to help me centre my product page information only on mobile?

Mainly the description, pop up, heading, price, etc. 

Thank you

Ella.

URL: https://www.samiyaskincare.com.au/products/crown-chakra-face-mask-moringa

Screenshot 2025-03-19 at 14.03.27.png

Replies 3 (3)

Mustafa_Ali
Explorer
347 28 56
<style>
@media screen and (max-width: 767px) {
section#ProductInfo-template--24209589993766__main {
    text-align: center;
 }
}
</style>

MustafA16_0-1742358807295.png

 

Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->
under the <style> tag before the body ----->
if this code work please do not forget to like and mark it solution

B2Bridge
Explorer
365 75 93

Hi @ellacoker  , you can follow these steps:

Step 1: Open Online Store -> Themes -> Edit code.

Step 2: Find component-card.css file

Step 3: Paste this code at the bottom of the file

@media screen and (max-width: 749px) {
    .product-popup-modal__opener.quick-add-hidden {
        width: 100% !important;
        text-align: center !important;
    }
}

Screenshot_5.png

If this is helpful, please let us know by giving us a like and marking it as a solution. Thank you 😍

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

PageFly-Richard
Shopify Partner
5011 1120 1802

 

Hi @ellacoker 

 

This is Richard from PageFly - Shopify Page Builder App

 

Please add this code to your theme.liquid above the </head> to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the </head>

<style>
@media (max-width: 768px) {
section#ProductInfo-template--24209589993766__main > * {
    text-align: center;
}
modal-opener.product-popup-modal__opener.quick-add-hidden {
    width: 100%;
}
}
</style>

PageFlyRichard_0-1742368197012.png

 

Hope this can help you solve the issue 

 

Best regards,

Richard | PageFly 

 

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.