Removal of 'Add to cart' button from Archieve page
-
I have added the following code to function.php
/*STEP 1 – REMOVE ADD TO CART BUTTON ON PRODUCT ARCHIVE (SHOP) */
function remove_loop_button(){
remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10 );
}
add_action(‘init’,’remove_loop_button’);But the ‘Add to Cart’ button is still visible on Archive page. I want to remove this button and show a new button called ‘Read More’ and direct my customer to product detail page before purchasing my products.
Please help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Removal of 'Add to cart' button from Archieve page’ is closed to new replies.