cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the "remove item" garbage can icon

SOLVED

How to change the "remove item" garbage can icon

Is there a way to change the garbage can symbol or add text next to it. We've had quite a few people who couldn't figure out how to remove an item from their cart.

Open source 2.2

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to change the "remove item" garbage can icon

You need to override core file, vendor/magento/module-checkout/view/frontend/templates/cart/item/renderer/actions/remove.phtml

to your theme folder,

app/design/frontend/{Packagename}/{themename}/Magento_Checkout/templates/cart/item/renderer/actions/remove.phtml

Keep below content,

<a href="#"
   title="<?= $block->escapeHtml(__('Remove item')) ?>"
   class="action action-delete"
   data-post='<?= /* @escapeNotVerified */ $block->getDeletePostJson() ?>'>
     <?= /* @escapeNotVerified */ __('Remove item') ?>
</a>

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial

View solution in original post

1 REPLY 1

Re: How to change the "remove item" garbage can icon

You need to override core file, vendor/magento/module-checkout/view/frontend/templates/cart/item/renderer/actions/remove.phtml

to your theme folder,

app/design/frontend/{Packagename}/{themename}/Magento_Checkout/templates/cart/item/renderer/actions/remove.phtml

Keep below content,

<a href="#"
   title="<?= $block->escapeHtml(__('Remove item')) ?>"
   class="action action-delete"
   data-post='<?= /* @escapeNotVerified */ $block->getDeletePostJson() ?>'>
     <?= /* @escapeNotVerified */ __('Remove item') ?>
</a>

 

If Issue Solved, Click Kudos/Accept As solutions. Get Magento insight from
Magento 2 Blogs/Tutorial