A user is experiencing misalignment of the quantity selector on product pages using the Grid theme. The selector appears pushed far to the right, aligning with variant dropdowns instead of staying close to the “Quantity” label.
Visual Issue:
Screenshots show the quantity selector displaced horizontally when variant selectors are present
Should align vertically with the label, similar to products without variants
Proposed Solutions:
Section-level fix: Add CSS to the section’s “Custom CSS” area:
Use display: flex and flex-wrap: wrap on .product-options
Theme-level fix: Insert CSS in theme.liquid before </body> tag
Comprehensive CSS approach: Modify base.css or section-product-form.css with:
Flexbox properties for .product-form__buttons and .product-form__quantity
Alignment adjustments to prevent variant pickers from breaking layout
Alternative vertical-align approach if flexbox doesn’t work
One responder also suggested a drag-and-drop app (Easy Edits) as an alternative to manual CSS editing. The discussion remains open pending confirmation of which solution works.
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
It seems to happen any time I have a variant selector on the page. Is there custom css I can apply to this theme template for these products to make it look more normal?
You can see the quantity selector way out to to the right. It looks like it is aligning with the end of the variants, not up against where it says “Quantity”
hey @LycetteGreg dear follow these steps
Go to online store ----> themes ----> go to three Dots ----> edit code ---->find theme.liquid files ----> place the code ---->before the ----->
before the body ----->
if this code work please do not forget to like and mark it solution
I can see the quantity selector alignment issue on your product pages. This is a common problem when variant selectors affect the layout. Here’s how to fix it:
Solution: CSS to align quantity selector
Go to Shopify Admin → Online Store → Themes → Actions → Edit Code
Find assets/base.css or assets/section-product-form.css
This should align your quantity selector properly with the add to cart button, regardless of variant selectors above.
Alternative: I actually built Easy Edits that lets you click and drag elements into perfect alignment without hunting for CSS selectors. Great for fixing layout issues like this!
Try the CSS and let me know if it fixes the alignment!