Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Add to cart button change design Reply To: Add to cart button change design

#277341
dani555
Participant

Hello
I found how to do it
thanks for helping

  1. Replace you css code with :
    .btn-default {
    transition: 0.4s;
    color: #fff;
    background-color: #303030;
    text-transform: uppercase;
    position:relative;
    padding-right:52px;
    width:100%
    }
    .fa-shopping-cart {
    position:absolute;
    right:0px;
    top:0px;
    padding:9px 12px 7px 10px;
    background:red;
    height:100%;
    font-size:130%;
    }
    .product-thumb {
    padding-bottom: 0px;
    }

  2. Navigate to catalog/view/theme/oc-light/template/common/header.twig
    Search for and replace it with