Archived topic
Double icon for the shopping cart
11 replies · Started by Eric on September 9, 2020
Hello,
I want to change the default icon for the shopping cart using your filter :
add_filter( 'generate_woocommerce_menu_cart_icon', 'tu_change_wc_menu_cart_icon' );
function tu_change_wc_menu_cart_icon() {
return '<i class="fas fa-shopping-bag"></i>';
}
But now I have got 2 icons, the standard one is still there. Thanks for your support
Hi there,
try Customizer > General and change the Icon Type to SVG.
Hi David,
Thanks but it doesn't work...
Can you try adding / removing an item from the Menu Cart. Woo caches this - which maybe the issue.
Let us know.
Ok, when I will be on the single page. I will inform you
Thanks
Ok - let us know :)
I have the same problem. I tried adding and removing an item from the cart, but two icons are still present:

Hi there,
can you start a new topic where you can share a link to your site, as your issue is different to the above ( the second icon is a Font Awesome icon - which GP doesn't use, so it must be added by another plugin or function ).
Actually, it's the same issue. I forgot to mention that I added the second icon using the same filter as in the original post.
So are you wanting to use the custom Font Awesome icon instead of the SVG?
If so, you can do this:
.wc-menu-item .gp-icon {
display: none;
}
Yes, that's exactly what I want to do. Thanks for the tip.
No problem :)