How can I change the 'add to cart' button color to a solid background?

Site zoticnewyork.com

I want to change the clear add to cart to a solid background

I want to make it this hex #0066A6

Hi @AMOB ,

It usually has options to change color of button in Online store > Themes > Customize > Theme settings > COLORS

Its prestige

My add to cart is Transparent because I use dynamic

Go to your Online store > Themes > click on 3 dots button, Edit code > Assets > theme.css.liquid file and add this CSS code at the bottom

.ProductForm__AddToCart {
background: #0066A6 !important;
color: #fff !important;
}
1 Like

Did not work, and I do not have a theme.css.liquid I tired on theme.liquid and theme,css

So please add code in theme.css make sure you click Save button after adding code and reload your product page for checking

I did, and it did not work, again when you have dynamic button it makes the add to cart transparent, which I still added and it did not fix

Cannot see you added the code. Here is result when adding code I sent you above

1 Like

check now I added it to the bottom of theme.css right now

Try to add this in your theme.liquid file


1 Like

Or try to use this code instead of

.Button--secondary {
background: #0066A6 !important;
color: #fff !important;
}
1 Like

worked ur amazing

1 Like

Happy I could help!

how do I make the add to cart text black

Replace #fff in a code with a black code, example #000