Jump to content

Add to Cart-Button - how can I change the color?


Recommended Posts

you're talking about add to cart button on product listing, or on product page?

im asking because add to cart on product page uses styles from product.css line 408

.box-info-product .exclusive {
padding: 0;
border-top: 1px solid #0079b6;
border-right: 1px solid #006fa8;
border-left: 1px solid #006fa8;
border-bottom: 1px solid #012740;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-ms-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
position: relative;
display: block;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #009ad0), color-stop(100%, #007ab7));
background-image: -webkit-linear-gradient(#009ad0, #007ab7);
background-image: -moz-linear-gradient(#009ad0, #007ab7);
background-image: -o-linear-gradient(#009ad0, #007ab7);
background-image: linear-gradient(#009ad0, #007ab7);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#009ad0', endColorstr='#007ab7',GradientType=0 );
}
  • Like 2
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

I managed to change color of the add to cart button, everywhere, thanks to this post, 

only one little detail, there is still a blue (old color ) line in the middle of the button,. that I've looked everywhere but cannot find, would you please have a look and let me know if you find it or know where is it. Thanks

http://shop.alloff.it/interi/24-jasmine-costume-intero.html

 

post-782009-0-58961300-1399587791_thumb.jpg

Link to comment
Share on other sites

Or just change yourdomain/themes/default-bootstrap/css/product.css

 

Find:

.box-info-product .exclusive:after {
    background: url("../img/border-1.gif") repeat-y rgba(0, 0, 0, 0);
    bottom: 0;
    content: "";
    left: 51px;
    position: absolute;
    top: 0;
    width: 1px;
    z-index: 2;
}

Remove background line

 

One more line will still exist, it's here:

 

.box-info-product .exclusive:before {
    border: 1px solid #6F6F6F;
    border-radius: 5px 0 0 5px;
    bottom: 0;
    color: #FFFFFF;
    content: "";
    font-family: "FontAwesome";
    font-size: 25px;
    left: 0;
    line-height: 47px;
    position: absolute;
    text-align: center;
    text-shadow: 0 1px #333333;
    top: 0;
    width: 51px;
    z-index: 2;
}

Remove border: 1px solid #6F6F6F; if you don't want it

 

  • Like 3
Link to comment
Share on other sites

×
×
  • Create New...