Support » Plugin: WooCommerce » Icon instead of text on button

  • Resolved losrack



    I have this function to edit the add to cart to show “info” instead and the link to the product.

    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.


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.