0

I have developed custom theme, and added own cart icon image using

app\design\frontend\Mytheme\theme\web\css\source_extend.less

.minicart-wrapper .showcart::before {
    // content: "" !important;
    background: url('../images/cart.png') no-repeat;
    width: 27px;
    height: 25px;
    padding-left: 37px !important;
  }

But default cart icon image also shown, how to remove default one.

0
.minicart-wrapper .action.showcart:before{
    content:"";
    background-image: url('../images/cart.png') no-repeat;
    width: 27px;
    height: 25px;
    padding-left: 37px;
}

Add the above css after run the below commnds,

bin/magento s:up
bin/magento s:s:d -f
bin/magento c:f
4
  • Did you missed Semicolon or?
    – zus
    Dec 9 '20 at 13:46
  • yes , now updated please check. Dec 10 '20 at 3:53
  • The default cart icon remove from web view ( styles-l.css ) how to remove same from mobile view ( styles-m.css )
    – zus
    Dec 11 '20 at 6:44
  • Screenshot: snipboard.io/6jHAhr.jpg
    – zus
    Dec 11 '20 at 7:14

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.