Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: how can i change the color of variant background

Solved

how can i change the color of variant background

Martin299
Excursionist
30 1 8

how can i change the color of variant background 
thanks in advance
Screenshot 2024-08-30 113142.png

Accepted Solutions (2)

Rahul_dhiman
Shopify Partner
656 127 132

This is an accepted solution.

Hello @Martin299 
Go to online store ----> themes ----> actions ----> edit code ---->assets ----> component-product-varient-picker.css
add this code at the end of the file.

.product-form__input--pill input[type=radio]:checked+label {
background-color: #ffcc33;
color: #000;
}

result
15.png

Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

View solution in original post

topnewyork
Globetrotter
748 124 139

This is an accepted solution.

@Martin299 , replace the old code with this:

 

<style>
.product-form__input--pill input[type=radio]:checked+label {
    border: unset;
    background-color: #f6b600;
    color: black ! important;
}
</style>

 

topnewyork_0-1725015284067.png

 

 

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount

View solution in original post

Replies 11 (11)

topnewyork
Globetrotter
748 124 139

Hi @Martin299 , 

 

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

 

<style>
.product-form__input--pill input[type=radio]:checked+label {
    background: #ffc520 !important;
    border: unset !important;
}
</style>

 

topnewyork_0-1725014673911.png

 

 

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount
Martin299
Excursionist
30 1 8

it works, 
how can i change the text color to black in variant 

topnewyork
Globetrotter
748 124 139

I am giving you the fix just give me a few minutes. 

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount
topnewyork
Globetrotter
748 124 139

This is an accepted solution.

@Martin299 , replace the old code with this:

 

<style>
.product-form__input--pill input[type=radio]:checked+label {
    border: unset;
    background-color: #f6b600;
    color: black ! important;
}
</style>

 

topnewyork_0-1725015284067.png

 

 

Need a Shopify developer?
Hire us at Top New York Web Design
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount

Moeed
Shopify Partner
6304 1712 2059

Hey @Martin299 

 

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-form__input--pill input[type=radio]:checked+label {
    background: #FFCC33 !important;
    border: unset !important;
}
</style>

RESULT:

Moeed_0-1725014421054.png

 

If I managed to help you then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


Rahul_dhiman
Shopify Partner
656 127 132

This is an accepted solution.

Hello @Martin299 
Go to online store ----> themes ----> actions ----> edit code ---->assets ----> component-product-varient-picker.css
add this code at the end of the file.

.product-form__input--pill input[type=radio]:checked+label {
background-color: #ffcc33;
color: #000;
}

result
15.png

Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167
Rahul_dhiman
Shopify Partner
656 127 132

Thanks for accepting the solution
Please hit like button also.

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167

CRSYTALTOGEL
Visitor
3 0 0

CRSYTALTOGEL
Visitor
3 0 0

CRSYTALTOGEL
Visitor
3 0 0

Rahul_dhiman
Shopify Partner
656 127 132

Thanks for accepting the solution
Please hit like button also.

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -rahul@prowebcoder.com - Skype: live:dhiman.639
Checkout Some Free Sections Here
Mobile:- +91 62390-46167