Shopify themes, liquid, logos, and UX
Hi guys,
On our product pages, we have colour swatches like shown below, sometimes using html colour codes and sometimes using files (for the multi-coloured products). The white color swatch is invisible because the main background colour of our site is white, and we also don't like the look of the colour swatches that are half white. How can I add a thin black line to all swatches, not just the selected colour (grey in the example below)?
I would appreciate your help.
URL: https://cradlestudio.de/products/100-baumwolle-piquee-kissen-007-pebble
Hi @zieglj
Here a thing, when you selected a color there is a border color black. What I did I colored it red. and the none selected color black border. You can change the color you like.
:checked+.color-swatch, .color-swatch.is-selected {
border-color: red;
}
.rounded-full {
border: 1px solid black;
}
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi @zieglj
This is Henry from PageFly - Landing Page Builder App
You can try this code by following these steps:
Step 1: Go to Online Store->Theme->Edit code.
Step 2: Search file theme.css
Step 3: Paste the below code at bottom of the file -> Save
a.color-swatch.rounded-full {
border: 1px solid !important;
}
Hope that my solution works for you.
Best regards,
Henry | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
User | RANK |
---|---|
203 | |
170 | |
80 | |
58 | |
48 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023