Hi,
For speed reasons I dont want to load the complete font-awesome, but would like to replace CART in the menu by the shopping-cart icon. Therefore I created my own font with 2 icons.
This works fine on a test page:
<i class=”coen icon-user” aria-hidden=”true”></i>
<i class=”coen icon-shopping-cart” aria-hidden=”true”></i>
https://plasticplaten.com/test/
The icon-user also works fine in the menu, however I cant get the shopping-cart logo to show up, using the following code snippet:
add_filter( ‘generate_woocommerce_menu_cart_icon’, ‘tu_change_wc_menu_cart_icon’ );
function tu_change_wc_menu_cart_icon() {
return ‘<i class=”coen icon-shopping-cart” aria-hidden=”true”></i>’;
}
What do I do wrong, or is there a workaround?