Home › Forums › WoodMart support forum › "woocommerce_loop_add_to_cart_link" replacement and "woodmart-add-btn" class › Reply To: "woocommerce_loop_add_to_cart_link" replacement and "woodmart-add-btn" class
March 19, 2018 at 7:30 am
#46950
Artem Temos
Keymaster
Hello,
Try to change your code and replace this line
$button = '<a class="" href="' . $product->get_permalink() . '">' . $button_text . '</a>';
with this one
$button = '<a class="" href="' . $product->get_permalink() . '"><span>' . $button_text . '</span></a>';
Regards