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.

1 Answer 1

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, 2020 at 13:46
  • yes , now updated please check. Dec 10, 2020 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, 2020 at 6:44
  • Screenshot: snipboard.io/6jHAhr.jpg
    – zus
    Dec 11, 2020 at 7:14

Your Answer

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

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