All things Shopify and commerce
Hello, I'm trying to align the variant pills in the center like the add to cart button bellow.
Appreciate if anyone shared the code!
Site url: https://23bc4a.myshopify.com/
/Leon
Add this code to your theme.css file:
.product-form__input{
align: center;
}
There is no file named theme.css, are you referring to theme.liquid?
No, there should be a general css file. I might be as well called theme.scss
Not for me?
Hi @Leonpojen ,
This is Victor from PageFly - Landing page builder, I’d like to suggest this idea:
Step 1. Go to Online Store -> Theme -> Edit code
Step 2. Open your theme.liquid theme file
Step 3. Paste below code before </body> :
<style>
@media (max-width:767px){
variant-radios#variant-radios-template--17819497562379__main {
text-align: center;
justify-content: center;
display: flex;
}
}
</style>
Hope my answer will help you.
Best regards,
Victor | PageFly
Hello There,
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset -> base.css and paste this at the bottom of the file:
@media screen and (max-width: 767px){
.product-form__input {
text-align: center;
margin: 0 auto;
}
.product__title {
text-align: center;
}
.product-form__buttons {
margin: 0 auto;
}
}
User | RANK |
---|---|
19 | |
18 | |
17 | |
14 | |
13 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023