Change color add to cart button only. Theme SENSE

Hi All,

I cant find the part of code where to change the color of the add to cart button.

Is there someone who can help me?

1 Like

Hello There,

  1. In your Shopify Admin go to online store > themes > actions > edit code
  2. Find Asset >base.css and paste this at the bottom of the file:
.btn--add-to-cart {
background: gold;
border: none;
color: white;
}

Hi, thanks for your answer.

It does not make the add to cart button green. All the other backgrounds turn green now.

1 Like

Hello There,

Please share your page store URL and password.
So that I will check and let you know the exact solution here.

Hey @SP99 ,
Welcome to the Shopify community!
please add this to your CSS file.

button[name="add"] {
  background: red !important;
  color: white;
}

If you feel like my answer is helpful, please Like and mark it as a solution. Let me know if you have any further questions.
Thank you!
Raman
Return Prime

2 Likes

You are amazing. This is the solution! Thank you so much

1 Like

I love you, been looking for hours for the solution