Question

I've like to remove the product thumbnails (not display:none, but completely remove action) on Product Category Pages. Any suggestions?

I tried adding the following in my Wordpress functions file but didn't work:

remove_action( 'woocommerce_product_thumbnails', 'woocommerce_show_product_thumbnails', 20 );

No correct solution

OTHER TIPS

The hook used on the category page is: woocommerce_before_shop_loop_item_title.

So you need to do the following:

remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );

Remove thumbnail category, go to file content-product-cat.php and remove the following code:

/**
 * woocommerce_before_subcategory_title hook
 *
 * @hooked woocommerce_subcategory_thumbnail - 10
 */
do_action( 'woocommerce_before_subcategory_title', $category );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top