Solved

Dawn - Change variant background color

Alex087
Trailblazer
219 3 37

Hi,

 

I want to edit the background color of the 2 variant badges on my product page. if possible i would like a gradient color for the first badge.

 

Thanx for your help

Alex

Accepted Solution (1)
SAN_MSWEB
Shopify Expert
872 110 115

This is an accepted solution.

Not possible.

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

View solution in original post

Replies 4 (4)

SAN_MSWEB
Shopify Expert
872 110 115

Hi @Alex087 


I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the base.css file:

.product-form__input input[type=radio]:checked+label {background: #7069bc54!important; color: #000 !important;}

 

 

Regards,

San

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

Alex087
Trailblazer
219 3 37

hi San,

Thanx for your help,

Is it possible to have a different color for each variant?

SAN_MSWEB
Shopify Expert
872 110 115

This is an accepted solution.

Not possible.

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

PageFly-Oliver
Globetrotter
701 138 131

Hi @,

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at the bottom of the file -> Save

.card__badge .badge{
background:black
}

PageFlyOliver_0-1694687657699.png

 



Hope my solution works perfectly for you!

Best regards,

Oliver | 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.