Please help me making it less wide and the borders more opaque, without affecting other fields like the contact field which are all found on the Theme Settings.
Using Dawn 15 misteri.ca
A user working with Shopify’s Dawn theme seeks to make the quantity input button narrower and its borders more opaque, without affecting other form fields like contact forms in Theme Settings.
Two solutions were provided:
First approach: Insert CSS code in the theme.liquid file above the </head> tag to modify the quantity button styling.
Second approach (more detailed):
base.css (or theme.css, custom.css)quantity-input.quantity to adjust width (suggested: 110px)box-shadow with rgba values (suggested: 0.05 opacity)Both solutions include CSS code snippets and visual examples showing the modified quantity button. The discussion appears resolved with actionable implementation steps provided.
Please help me making it less wide and the borders more opaque, without affecting other fields like the contact field which are all found on the Theme Settings.
Using Dawn 15 misteri.ca
Hi @MiguelMaya ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above tag:
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 ![]()
Hi @MiguelMaya,
You can follow these steps to make the quantity button less wide and the borders more opaque
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 {
/* You can change this value to your preference */
width: 110px !important;
}
quantity-input.quantity:after {
/* This is the code to make the border more opaque */
/* You can change the value 0.05 to the opacity of your preference */
box-shadow: 0 0 0 var(--inputs-border-width) rgba(var(--color-foreground), 0.05);
}
Here is the result
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!