In Woocommerce, I want to remove the product image on both the single product page as well as the main product page and category/archive pages. I was able to remove the image from the single product page by adding the code:
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
but not from the other pages. I added the following code to my (child’s) functions.php, to no avail:
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
Any idea of what code needs to be added and/or changed?`
PS: To figure out the answer to the above, I disabled the wc-template-hooks.php
. This caused the layout of the product pages to change, but the product image/thumbnail and product information still showed up?