0

I've been looking everywhere to change the css of this 'add to cart' button. The selector is .addtocart but when i change the css nothing changes...

.addtocart{
background-color: green;
}

I also cant find it anywhere in the css files.

enter image description here

1
  • use !important or Share your url... – Magento 2 Sep 2 '16 at 9:06
2

Add !imporatnt in css

   .addtocart{
          background-color: green !important;
    }
1

Edit code in below mentioned files

magento/skin/frontend/rwd/default/css/style.css

button,
.cart-table .product-cart-actions .button,
#co-shipping-method-form .buttons-set .button,
.footer .button {
     background: #000;
 }

I edited these background color and it worked for me on category page & product.

enter image description here

0

Change code like below to implement

.addtocart span span{ background-color: green; }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.