Hello,
In theme settings, I have set up to not display the “add to cart” button.
But the link is still there, I can see it when I view the HTML source :
<a href=”?add-to-cart=20140″
How to totally remove it? I ask, because those links are indexed by Google…
I tried to put this on the functions.php, but add to cart links are still there :
remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’);
(https://rudrastyh.com/woocommerce/remove-add-to-cart-button.html)
I was wondering if it was because of somethingĀ in the theme, because it seems this method works when the theme is disabled.
Any ideas?
Thanks