Shopify themes, liquid, logos, and UX
Hi,
I am trying to change the shape of my colour swatches from circles to square/rectangle . I have a paid Vision theme made by fuel themes (they cannot help apparently) Is this possible? Many thanks
Hey @RVWebsitehelp
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hey @RVWebsitehelp
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.product-card .product-card-swatches .product-card-swatch:after {
border-radius: 0 !important;
}
.product-card .product-card-swatches .product-card-swatch {
border-radius: 0 !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
They are still round on the product page, this is the issue I am trying to sort. Shall I remove the previous piece of code I have just inserted? I await your next steps. Many thanks
Can you send me the link of that exact product?
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
.variations .product-form__input--color input[type=radio]+label:after {
border-radius: 0 !important;
]
}
If my reply is helpful, kindly click like and mark it as an accepted solution.
If you are happy with my help, you can help me buy a COFFEE
Thanks!
Thanks but this hasn't helped either
1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.css / based.css file and paste the code in the bottom of the file.
.variations .product-form__input--color input[type=radio]+label {
border-radius: 0% !important;
}
.variations .product-form__input--color input[type=radio]+label:after{
border-radius: 0% !important;
}
result
Okay great. That looks much better but for some reason it's still not showing on my end? Can you show me the exact location where I have to paste this please?
Search theme.css/base.css
.variations .product-form__input--color input[type=radio]+label {
border-radius: 0% !important;
}
.variations .product-form__input--color input[type=radio]+label:after{
border-radius: 0% !important;
}
I don't seem to have base.css have you created this?
Find theme.css
I have tried searching for theme.css but nothing shows. The only thing I am getting is theme.liquid. Sorry I am not very good at this
In theme.liquid, paste the below code before </head>
<style>
.variations .product-form__input--color input[type=radio]+label {
border-radius: 0% !important;
}
.variations .product-form__input--color input[type=radio]+label:after{
border-radius: 0% !important;
}
</style>
Amazing. Thank you very much
Hello @RVWebsitehelp
1. In your Shopify Admin go to online store > themes > actions > edit code
2. Find Asset > main.css and paste this at the bottom of the file:
.variations .product-form__input--color input[type=radio]+label {
border-radius: 0% !important;
}
.variations .product-form__input--color input[type=radio]+label:after{
border-radius: 0% !important;
}
I recommend Easify Product Options for this! It’s a straightforward way to customize your swatches, and it simplifies the process by not requiring any coding. Here’s how it can help you:
I hope this answer helps solve the problem. If you need further assistance, feel free to reach out to Easify anytime! 😊
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024