Archived topic
WooCommerce
1 reply · Started by Mahmud on December 17, 2017
I have been able to hide the Product Images in the Category Pages and the Product Page
// Remove image from product pages
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
.woocommerce-page #content div.product div.summary { width:100%; }
// Remove product images from the shop loop
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
However I now need to activate the Product Images for a ""specific"" WooCommerce Category - Images should appear in both the Product Archive Pages and the Single Product Pages? How do I do this? With GP Hooks?
Hi there,
You would have to use some WordPress conditional tags like this to exclude the code on those specific pages: https://docs.generatepress.com/article/using-hooks-conditional-tags/
WooCommerce support should be able to point you to the right direction as those are their filters.