Hi, my variant picker section is custom coded but is showing left alignment on mobile. Can someone help with the code needed to change it to center.
Thanks.
Hi, my variant picker section is custom coded but is showing left alignment on mobile. Can someone help with the code needed to change it to center.
Thanks.
Hi
Do you mean the bundle variants?
This one.
if it is check this one, if it work.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code;
@media only screen and (max-width: 749px){
.variants {
justify-content: center;
}
}
And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Yes that’s the right section but it hasn’t worked unfortunately. As you can see it is still aligned to the left on mobile.
Try to add some important.
@media only screen and (max-width: 749px){
.variants {
justify-content: center !important;
}
}
And Save.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Unfortunately still no!