Hi @Martin299 ,
- Go to Online Store → Theme → Edit code.
- Open your theme.liquid file
- In theme.liquid, paste the below code before
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
A user seeks to change the background color of product variant selectors on their Shopify store.
Solutions Provided:
Multiple developers offered CSS-based approaches:
theme.liquid before the </head> tag to style variant backgrounds</body> tag in theme.liquidcomponent-product-variant-picker.css directly in the theme’s assets folder, targeting .form-input__pill input[type=radio]:checked+label with specific background and text colorsFollow-up Issue:
After implementing a solution successfully, the original poster requested help changing the variant text color to black. One contributor provided updated code to address this secondary styling request.
Status: The issue appears resolved, with the user confirming the solution works and marking it as accepted. The thread includes code snippets and screenshots demonstrating the implementation steps.
Hi @Martin299 ,
If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!