2

I want to change the shopping cart icon. I want to add a new image, how to do that. I am using Magento 2.3

https://prnt.sc/osf50f

closed as too broad by Shoaib Munir, Manashvi Birla, Jai, Piyush, Rk Rathod Aug 14 at 11:34

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2

You can use .minicart-wrapper .action.showcart:before selector to change the icon in your custom stylesheet

example path: app/design/frontend/{theme}/{theme_name}/web/css/custom.css

.minicart-wrapper .showcart::before {
    content: "" !important;
    background: url(https://www.svgrepo.com/show/222653/shopping-cart.svg) no-repeat;
    width: 27px;
    height: 25px;
    padding-left: 37px !important;
}

Then Clear Cache and try

  • Can u tell me In which file i can add this? – Nafisa Aug 14 at 6:56
  • please copy and paste the above code in your custom style sheet (ex: style.css ..) – Shafeel Sha Aug 14 at 6:57
  • please check updated answer – Shafeel Sha Aug 14 at 6:59
  • can i add image url in content itself? – Nafisa Aug 14 at 7:11
  • please add url here background: url('image-url-paste-here'); – Shafeel Sha Aug 14 at 7:16

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