Icon instead of text on button
-
Hi,
I have this function to edit the add to cart to show “info” instead and the link to the product.
add_action('woocommerce_after_shop_loop_item','replace_add_to_cart'); function replace_add_to_cart() { global $product; $link = $product->get_permalink(); echo do_shortcode('<center><a href="'.$link.'" class="button addtocartbutton">Info</a></center>'); }
I would like to change the “info” or whatever is the echo .. to be able to show an unicode icon or awesome font.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Icon instead of text on button’ is closed to new replies.