Color Selector & Quantity Button

Solved
BackwoodsGeek
Excursionist
12 0 3

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

Accepted Solutions (2)
Made4uo-Ribe
Shopify Partner
4007 916 1120

This is an accepted solution.

Hi @BackwoodsGeek 

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;
}

 

  • And Save. 
  • result:
  • Made4uoRibe_0-1698442118149.png

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Made4uo-Ribe
Shopify Partner
4007 916 1120

This is an accepted solution.

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. 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 7 (7)
BackwoodsGeek
Excursionist
12 0 3

Forgot to add this screenshot...Screenshot (15).png

Made4uo-Ribe
Shopify Partner
4007 916 1120

This is an accepted solution.

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. 

 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


BackwoodsGeek
Excursionist
12 0 3

You are a LIFESAVER! Thank you very much!

Made4uo-Ribe
Shopify Partner
4007 916 1120

This is an accepted solution.

Hi @BackwoodsGeek 

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;
}

 

  • And Save. 
  • result:
  • Made4uoRibe_0-1698442118149.png

 

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


BackwoodsGeek
Excursionist
12 0 3

That worked perfectly, except I didn't notice the Size option, so it is still Black.Screenshot (16).png

Stacystaff
Visitor
1 0 1

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!

Made4uo-Ribe
Shopify Partner
4007 916 1120

Thanks good to hear! Welcome. 

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com