What's your biggest current challenge? Have your say in Community Polls along the right column.

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

Solved

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

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
9133 2180 2688

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Made4uo-Ribe
Shopify Partner
9133 2180 2688

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. 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

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
9133 2180 2688

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. 

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
BackwoodsGeek
Excursionist
12 0 3

You are a LIFESAVER! Thank you very much!

Made4uo-Ribe
Shopify Partner
9133 2180 2688

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!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
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
9133 2180 2688

Thanks good to hear! Welcome. 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.