How can I change the shape of my first set of material swatches to circles instead of the current squares?
However, I want to keep the square shape of my letters.
Is there also a code to make a drop down list of these options?
Thank you in advance!
https://luyendykjewelry.com/products/gedenksieraad-hanger-hart?variant=54070572876121
1 Like
Hi @Chrystel078
Try this one.
- 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:
variant-picker > fieldset:nth-child(2) label.color-swatch {
border-radius: 50%;
}
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
1 Like
Thanks! Worked like a charm!
Is there also a way to make a dropdown menu with these swatches?
Do you mean add round edges?
Actually a drop down menu. Now they are side by side.
Same instruction, add this code.
.avpoptions-container__v2 input[type=number],
.avpoptions-container__v2 input[type=text],
.avpoptions-container__v2 select,
.avpoptions-container__v2 textarea {
border-radius: 20px !important;
}
And Save.
Result:
Note: you can adjust/decrease the radius.
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
I think you misunderstand me.
I want to create a dropdown menu with the swatches.