All things Shopify and commerce
Hello,
I am wondering how I am able to get my variant boxes (size, color, quantity) on my product page, the same length and size as the "add to cart" and "buy it now" boxes that are right below them.
Is there some sort of code that can be sent to me, so i can add?
Please look at my photo for referece,
Thank you!
Solved! Go to the solution
This is an accepted solution.
Hi @ampador Iam sorry for delay, I have seen vinsinfo help you set full width of input. and you want more set text small center. you can add code here to set text small to center, please add code in file theme.liquid and above tag </head>:
<style>
.product-form__input:nth-child(1) .select__select{
text-align: center !important;
}
</style>
Or if you want set text small and purple of color to center please add code here:
<style>
.product-form__input .select__select{
text-align: center !important;
}
</style>
Thank you so much.
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is Noah from PageFly - Shopify Page Builder App
I can help you. Please can you provide the website url. Thank you.
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
I have a password on it, the password is : Ampador2020! if needed
This is an accepted solution.
Hi @ampador Iam sorry for delay, I have seen vinsinfo help you set full width of input. and you want more set text small center. you can add code here to set text small to center, please add code in file theme.liquid and above tag </head>:
<style>
.product-form__input:nth-child(1) .select__select{
text-align: center !important;
}
</style>
Or if you want set text small and purple of color to center please add code here:
<style>
.product-form__input .select__select{
text-align: center !important;
}
</style>
Thank you so much.
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Great, it worked.
I truly appreciate your help with all of my inquiries!
Thank you. No Problem , Have a nice day 😉 !
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
.quantity {
width: 100% !important;
}
.product-form__input .select {
max-width: 100% !important;
}
Thank you very much, it worked!
One last question, do you know how I can center the the word "small" inside of the "sizes" box.
I have added a picture for reference, the size box where it says "small" is there anyway I can center that? Because now, it located in the left size of the box.
Thank you in advance!
@ampadorGlad to hear that our solution works for you! Please provide your support by click "Like" and "Accepted" for the previous solution.
Please follow the below steps to center the text in the variant boxes. Let me know whether it is helpful for you.
variant-selects .select__select option {
text-align: center !important;
}
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025