How to change the color of the variant button?

Solved

How to change the color of the variant button?

Jim3
Explorer
68 1 23

Screenshot (358).png

Jim
Accepted Solution (1)
Mustafa_Ali
Explorer
358 30 57

This is an accepted solution.

Mustafa_Ali_0-1744628418467.png

just removed the one style tag and then saved it 

 

View solution in original post

Replies 6 (6)

Mustafa_Ali
Explorer
358 30 57

hey @Jim3share the URLs of your website plz

B2Bridge
Explorer
365 75 93

Hi @Jim3 
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Moeed
Shopify Partner
7395 2004 2446

Hey @Jim3 

 

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>
label[for="template--23594549477704__main-3-0"] {
    background: red !important;
    border: solid 1px red !important;
}
</style>

RESULT:

Moeed_0-1744614727906.png

 

If I managed to solve your problem 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


Jim3
Explorer
68 1 23

Hi, @Moeed 

 

It didnt work this time. Screenshot (361).png

Jim
Mustafa_Ali
Explorer
358 30 57

This is an accepted solution.

Mustafa_Ali_0-1744628418467.png

just removed the one style tag and then saved it 

 

Jim3
Explorer
68 1 23

It worked! Thank you 🙂

 

@Mustafa_Ali  In future I will make this kind of thing for next products, but I see that when I list them they are not showing with this changes. It seems that for every product I should add a different code to change the variant button color. I noticed that in the code there is a template number, if I use the same code and just change the template number with this on the new product, am I going to create this new changes for the new porduct? Thank you 🙂

Jim