How to remove the Add to Cart Button on product listing?

  • Open
  • avtars
    Participant
    November 15, 2019 at 4:46 am #4173
    avtars

    I’m wanting to remove the Add to Cart Button on the product listing pages. The only place I want it to appear is the individual product page. Can anyone suggest on where I can find to remove this?

  1. Manik Malhotra
    Keymaster
    Posts: 48
    November 15, 2019 at 11:15 am #4183
    Manik Malhotra
    add_action( 'woocommerce_after_shop_loop_item', 'remove_add_to_cart_buttons', 1 );
    
    function remove_add_to_cart_buttons() {
    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
    }