Archived topic
Primary Navigation Change Woocommerce Icon
4 replies · Started by _blank on May 28, 2018
Hi
In the Primary Navigation I’m trying to change the shopping trolley icon to a basket icon. I’m using Code Snippets to add the filter.
Here is the code.
add_filter( 'generate_woocommerce_menu_cart_icon', 'tu_change_wc_menu_cart_icon' );
function tu_change_wc_menu_cart_icon() {
return '<i class="fa fa-shopping-basket" aria-hidden="true"></i>';
}
It's not changed the icon.
Thanks
Scott
I've just noticed the icon appears when I'm editing a page with beaver builder.
Do i need to turn fontawesome 5 on in generate press?
Thanks
Scott
Hi there,
This should help: https://docs.generatepress.com/article/font-awesome/
Thanks Leo
Scott
No problem :)