What's your biggest current challenge? Have your say in Community Polls along the right column.

How can I center the quantity selector on my product page?

Solved

How can I center the quantity selector on my product page?

Claud123
Explorer
70 0 14

hey Guys,

 

Is there any way to center the quantity selector on the product page?

 

My domain is ElevationAthleticsYYC.ca and my theme is prestige.

 

Thanks,


Claudio

 

Screen Shot 2022-04-12 at 7.22.58 PM.png

Accepted Solution (1)

diego_ezfy
Shopify Partner
2970 571 917

This is an accepted solution.

@Claud123, do this to fix it in 20 seconds:

1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset >  theme.css and paste this at the bottom of the file:

@media (max-width: 749px){
    .ProductForm__QuantitySelector{
    display: flex;
    align-items: center;
    justify-content: center;
}
}



Kind regards,
Diego

View solution in original post

Replies 4 (4)

diego_ezfy
Shopify Partner
2970 571 917

This is an accepted solution.

@Claud123, do this to fix it in 20 seconds:

1. In your Shopify Admin go to: online store > themes > actions > edit code
2. Find Asset >  theme.css and paste this at the bottom of the file:

@media (max-width: 749px){
    .ProductForm__QuantitySelector{
    display: flex;
    align-items: center;
    justify-content: center;
}
}



Kind regards,
Diego

Isabel__
Visitor
1 0 0

It works on mobile devices, but not on Dektop. Could you help me out? Thank you!

AvadaCommerce
Shopify Partner
3879 839 991

Hi @Claud123 ,

 

You can follow the instruction below:

1. Go to Online Store->Theme->Edit code
2. Asset->/theme.css->paste below code at the bottom of the file:

@media (max-width: 1007px) {
.ProductForm__QuantitySelector {
    display: flex;
    justify-content: center;
}
}

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.

banned

dmwwebartisan
Shopify Partner
12323 2552 3732

@Claud123 

1. In your Shopify Admin go-to online store > themes > actions > edit code
2. Find Asset >  theme.css and paste this at the bottom of the file:

@media (max-width: 749px){
    .ProductForm__QuantitySelector{
    display: flex;
    align-items: center;
    justify-content: center;
}
}

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app