Log in to support

How To: Change the Cart Icon

How To: Change the Cart Icon
November 1, 2016 David Martin - Support

Inside the child theme functions.php file paste this and then add a product to the cart to refresh the WooCommerce AJAX fragment.

function nota_custom_cart_icon() {
return '<i class="sli-icon-bag"></i>';
add_filter( 'nota_mobile_cart_icon', 'nota_custom_cart_icon' );
add_filter( 'nota_header_cart_icon', 'nota_custom_cart_icon' );
add_filter( 'nota_go_to_shop_icon', 'nota_custom_cart_icon' );

You can then replace the icon code <i class=”sli-icon-bag”></i> using your own custom font icon.

Comments (0)

Leave a reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.