This is an edge case, however it may happen that a B2B business requires no product images and doesn’t want to use the WooCommerce image placeholder either (this shows on shop/category pages and the single product page when no featured image is added).
This interesting question was asked by a Club member in our private Slack channel, so I didn’t hesitate for a second and looked for a quick fix (2 lines of code). Enjoy!
PHP Snippet: Remove Product Images @ WooCommerce Shop & Single Product Pages
/**
* @snippet Woo without product images
* @tutorial Get CustomizeWoo.com FREE
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 8
* @community Join https://businessbloomer.com/club/
*/
remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
So, how do you remove them altogether, ie from the admin. I know they can be hidden but that doesn’t stop a content manager finding them?
You’re my wonderful goto resource for woo snippets, I’m sure you know how.
Hi Chris! I think this is more like a WordPress question, so I don’t have the answer for it. See what you can find online and let me know
Thanks for helping me out!
My pleasure!