Woocommerce - Remove image from product and single product pages

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?

Hi Nellie,

Thank you for writing in, while that is outside the scope of support, I could point you in the right direction with the understanding that it would ultimately be your responsibility to take it from here.

Please see the guide provided here.

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.