Hi Guys.
Found this awesome little code snippet you provided for another user. It changes the “add to cart” function on products page to “View Product”. Basically removes the add to cart function.
What I would love to do is put a mag glass icon next to the label. (Like shopping cart icon on Add to cart button.)
The code snippet is…
add_filter(‘woocommerce_loop_add_to_cart_link’, ‘my_add_cart_button’, 999);
function my_add_cart_button ( $button ) {
return ‘’.__(‘view product’, ‘x’).’’;
}
Cheers