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

asked Sep 2, 2016 at 9:05
1
  • use !important or Share your url... Commented Sep 2, 2016 at 9:06

3 Answers 3

2

Add !imporatnt in css

 .addtocart{
 background-color: green !important;
 }
answered Sep 2, 2016 at 9:09
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

answered Sep 2, 2016 at 9:16
0

Change code like below to implement

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

answered Sep 2, 2016 at 9:08

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.