Remove Add to cart button on search results page
-
Hello there,
First of all, thank you so much for developing a working WC product filter solution. I’ve tried about a dozen of others but none of them works as smooth as this.
I use the below hook to remove Add to cart button from product archives but when we use with the filter, it brings back that button. Is there a non-CSS way to remove it from search results?
add_action( 'woocommerce_after_shop_loop_item', function(){ remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' ); }, 1 );
Further, how can I get the filters to appear on top on mobile devices? I use the GeneratePress theme.
Many thanks in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Remove Add to cart button on search results page’ is closed to new replies.