Hello! Can you please help me allign the variant swatches? Thanks in advance
Hey @andreivasu ,
Go to your Shopify Admin Panel.
Navigate to Online Store β Themes.
Click on Edit Code (not Customize).
Open the theme.liquid file (found inside the Layout folder).
Scroll down and paste the code just before the tag:
I love you thanks. solved ![]()
Thank you so much, I appreciate it! ![]()
If you ever need assistance, please contact me at your convenience.
Hey there!
Hereβs how to align your variant swatches in Horizon theme:
Quick fix:
- Go to Shopify Admin β Online Store β Themes β Actions β Edit Code
- Open assets/base.css
- Add this CSS:
css
/* Center variant swatches */
.variant-picker__list {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 8px;
}
For left-align instead, use:
css
.variant-picker__list {
justify-content: flex-start;
}
Alternative: I built Easy Edits that lets you click and drag those swatches into perfect alignment without any code!
Let me know if you need them aligned differently!