How to remove products images placeholder in WooCommerce

Sometimes, items in your store do not require product images. But if a product does not have an image associated with it, then WooCommerce automatically adds default placeholder image to the product.

Let’s find out how to remove placeholder images for products.

  1. Access your server, using any ftp client or FileManager.
  2. Navigate to ‘wp-content/themes/themeXXXXX/includes’ folder, where XXXXX is the number of your theme.
  3. Open ‘custom-function.php’ file with any php/text editor.
  4. Add the following line to the very beginning of the file, right under <?php tag:
    remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_images', 20 );
  5. Refresh your website to see the changes.

This removes the product image placeholder from the product page, but can leave the column intact, pushing the page content over.

If this happens, you’ll have to fix the styling issue with some custom CSS. The exact rule you use, and how you make this modification will depend on your particular theme.

  1. We’d recommend that you use FireBug plugin for FireFox browser to inspect elements and edit CSS.
  2. Basically, you will just need to adjust the width value for the product description column.
  3. Change the width value to ‘100%’.
  4. Copy new rule declaration.
  5. Paste it to the Custom Css box of the Cherry Options.
  6. Refresh your website to see the changes.