Archived topic
Changing word "cart" in icon
3 replies · Started by Michael on March 3, 2018
Hey Tom,
I added:
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-cart" aria-hidden="true"></i>';
}
to the functions.php of the child theme. But somehow it keeps displaying the word "Cart"
instead of the desired icon.
I did not restrict font awesome in any way, any idea why this doesn't get picked up? What am I doing wrong or overlook?
Thanks in advance and thanks very much for your excellent work. Happy Generate Press user here!
Regards,
Michael
Hi Michael,
Just to double check that load essential icons here is not checked? https://docs.generatepress.com/article/general-settings-overview/
You shouldn't need a snippet to show the cart icon - it should show by default when you activate the setting in the customizer.
Let me know.
Hi Leo,
I'm embarrassed that I bothered your support forum...Total misconfiguration in my brain that somehow assumed that when the box is checked I have all the icons...it's sad....;-) Thanks anyway for helping me out.
Have a great day!
Kind regards,
Michael
No problem :)