I’d like changing the Quantity button to round corners as the variant buttons, without changing the contact form fields to round corners. Its the same setting for both in the Theme so some coding is needed.
I also want the quantity button to be the same size as the variant buttons.
Using Dawn Theme misteri.ca
Quantity number font size too.
Hi @MiguelMaya ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file base.css, theme.css, styles.css, custom.css or theme.scss.liquid
Step 3: Insert the below code at the bottom of the file → Save
.product quantity-input.quantity {
min-height: 38px !important;
}
.product .quantity__input {
font-size: 14px;
}
Here is result:
Hope this can help you,
If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you
Please go to Online Store > Themes > Edit code, open theme.liquid file, add this code after to make fields on contact page not round
Hi @MiguelMaya ,
You can follow these steps to make the quantity button the same size as the variant buttons and rounded
-
Open Online Store > Theme > Edit Code
-
Find and open the base.css (or theme.css, custom.css) file
-
Paste the code snippet below at the bottom of the file and hit save
quantity-input.quantity {
min-height: 38px !important;
}
quantity-input.quantity:before {
border-radius: 40px !important;
}
quantity-input.quantity:after {
border-radius: 40px !important;
}
quantity-input.quantity input {
/* You can change this value to fit your preference */
font-size: 20px;
}
-
Open Sales Channels > Online Store > Select your current theme > Customize
-
Open Theme Settings > Buttons > Corner radius
-
Set the value for the corner radius back to 0px to set all other buttons to default
Hope this helps you solve the issue.
Please don’t forget to Like and Mark it as an Accepted Solution if you find this helpful. Thank you!
1 Like
Thanks again for another clear and straightforward solution. Can you tell me how to reduce the width a little? Its too wide currently.