Site logo

Archived topic

Changing word "cart" in icon

3 replies · Started by Michael on March 3, 2018

Viewing posts 1–4 of 4

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 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 :)

This archived topic is closed to new replies.