Hi,
I’m using the free Shopify theme “Studio” and everything looks great on the product page, except when on mobile devices
The product information (for example: title, vendor, price and variable dropdowns) align to the left beneath the main product image which is centered.
It looks unprofessional.
Can somebody please offer me some code to center the product information, when on mobile devices only?
I hope someone can help me.
Thanks!
2 Likes
@storenewb
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community! 
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.
1 Like
Hello @storenewb , please link your store so I can provide you with the CSS solution. Thanks!
Good evening KetanKumar,
Thank you for your kind offer to help me. The URL is: https://alambingart.com/products/disco-poodle-wall-art-print
URL password is: happiness
Kind regards
1 Like
Hi @storenewb ,
Are you looking for something like this?
1 Like
Hi Abdi_Issak,
Yes, that’s perfect, thank you!
This is just for mobile devices isn’t it, not desktop?
Please can you share the code.
Kind regards
@storenewb yeah Mobile Devices are 749px and below.
You have to go into your product section:
Step 1) for all of the elements that have a class of:
“product__text”, “product__title”, “price”, “product__tax”, “form__label” add to their classlist “center-label__mobile”.
Then add this to the bottom of your theme.css
@media only screen and (max-width: 749px) {
.center-label__mobile {
text-align: center;
}
.product-form__input {
max-width: none;
}
.quantity {
margin: auto;
}
}
@storenewb
If you have any issues with the solution I sent you, shoot me a private message (on my profile) and I will enter it in for free. Thank You
Good evening @KetanKumar (apologies, I replied yesterday but didn’t realize I needed to tag you into my reply).
Thank you for your kind offer to help me. The URL is: https://alambingart.com/products/disco-poodle-wall-art-print
URL password is: happiness
Kind regards
@storenewb
thanks can you add this code
- Go to Online Store->Theme->Edit code
- Asset->/base.css ->paste below code at the bottom of the file.
@media screen and (max-width: 749px) {
.product__info-wrapper {
text-align: center;
}
.product-form__input .select {
margin: 0px auto;
}
.product-form__input .quantity {
margin: 0px auto;
}
.share-button__button, .share-button__fallback button {
margin: 0px auto;
}
}
3 Likes
Thank you for your reply @Abdi_Issak ,
There is not a file “theme.css”, however?
Kind regards
1 Like
@KetanKumar
Thank you so much for your help, it is really appreciated!
Kind regards
1 Like
I’m Having the same issue on my product page my them is prestige kindly give solution if anyone have
1 Like
@Jignesh09
Thank you for reaching out and posting this question!
Sorry you are facing this issue, it would be my pleasure to help you.
Welcome to the Shopify community! 
Thanks for your good question.
Please share your site URL,
I will check out the issue and provide you a solution here.