Hi! Im using Dawn theme and want to align variant color swatches to center. I’ve tried everything that can be found on this forum, but nothing worked.
Hey @Everup
Follow these Steps:
-
Go to Online Store
-
Edit Code
-
Find theme.liquid file
-
Add the following code in the bottom of the file above tag
RESULT
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
Thank you! Variant swatches aligned to the center.
But now I have a weird problem with “quantity” button which is aligned to center in the editor, but when I check on my phone it’s still aligned to the left. Could you help me with this also?
Hello @Everup
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.
.product-form__input--swatch {
justify-content: center !important;
}
.price-per-item__container {
justify-items: center !important;
}
Hello @Everup
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.
.product-form__input--swatch {
justify-content: center !important;
}
.price-per-item__container {
justify-items: center !important;
}
.price-per-item__container quantity-input.quantity {
margin: 0 auto;
}
AWESOME! THANK YOU SO MUCH
Hello @Everup
You’re very welcome! I’m thrilled to hear that you’re pleased with the outcome. Don’t hesitate to reach out if you need further assistance. like and accepting the All solution. Thank you!


