Hi Elise,
I managed to remove the add to cart button from the category / shop page using the given below code. Now, I need to do the same for the Ajax product tabs on the homepage as shown in the attached snapshot. Since those are single products, so I can’t remove the Add to cart icon from single products using the same code. Will you please provide some guidance on removing or hiding add to cart icon on the products in Ajax Product Tabs?
Thanks
function remove_add_to_cart_buttons() {
if( is_product_category() || is_shop()) {
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
}
}
Attachments:
You must be
logged in to view attached files.