How can I change the color of my variant and quantity selector buttons?

Hello,

Could someone please help me, My Color/variant button is solid black on all my products as well as my Quantity selector button. If I could at least get the writing white I would be happy, but the options to change but background and text color would be great! I have tried a few codes with no change.

Website URL is http://www.backwoodsgeek.com

1 Like

Forgot to add this screenshot…

1 Like

Hi @BackwoodsCamp

Try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
select#Option-template--21412270375212__main-0 {
background: white; 
border: 1px solid black;
}
select#Option-template--21412270375212__main-0:hover {
background: black;    
}
select#Option-template--21412270375212__main-0:hover {
    color: white;
}
.select:hover {
    color: white;
}
.quantity:before {
    background: white;
    border: 1px solid black;
}
quantity-input.quantity * {
    color: black;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

That worked perfectly, except I didn’t notice the Size option, so it is still Black.

Can you replace the code with this one. I add the size button. Thanks!

select#Option-template--21412270375212__main-0, select#Option-template--21412270375212__main-1 {
background: white; 
border: 1px solid black;
}
select#Option-template--21412270375212__main-0:hover, select#Option-template--21412270375212__main-1:hover {
background: black;    
}
select#Option-template--21412270375212__main-0:hover, select#Option-template--21412270375212__main-1:hover {
    color: white;
}
.select:hover {
    color: white;
}
.quantity:before {
    background: white;
    border: 1px solid black;
}
quantity-input.quantity * {
    color: black;
}

And Save.

1 Like

You are a LIFESAVER! Thank you very much!

1 Like

FINALLY found this answer!!! I have been working for HOURS to get my Quantity buttons fixed… I wanted black with white text so I just swapped out the colors in your code and IT WORKED!!!

You will never know how appreciative I am! This was driving me CRAZY!

Thanks!

1 Like

Thanks good to hear! Welcome.