A user seeks help organizing size selection bubbles on a Shopify product page to reduce visual clutter. The current layout appears misaligned and messy.
Two CSS solutions were provided:
AnneLuo’s approach: Add custom CSS code to the theme.liquid file, placed above the </head> tag. This method modifies the theme’s global styling.
Rahul_dhiman’s approach: Navigate to component-product-variant-picker.css in the theme’s assets folder and append CSS targeting .product-form__input elements with border-radius: 6px !important to create uniform pill-shaped buttons.
Both solutions include visual examples showing the improved alignment. The user also asked about converting bubbles to squares as an alternative styling option.
Status: Multiple solutions offered; awaiting user feedback on which approach works best.
Summarized with AI on November 5.
AI used: claude-sonnet-4-5-20250929.
Hello, I would like to ask if anyone knows how to makde sure that all the size bubbles are aligned on the product page in order not to look so messy! Maybe make them into squares instead of bubbles?
You can try this code by following these steps:
Step 1: Go to the online store ->Theme ->Edit Code.
Step 2: Find the theme.liquid file and add the following code above the tag
Hello @ChrisM187
Go to online store ---------> themes --------------> actions ------> edit code------->assets-----> component-product-varient-picker.css
add this code at the end of the file.