Change Default Product’s Placeholder Image in WooCommerce

No Signup - No Payment - Just Download

Generic filters
Name of Plugin/Theme
Features / Description

Upload your prefered image to WordPress Media Library. Copy the URL of that image. Then add below snippet to the bottom of functions.php file:

//* Function to change product placeholder image.
add_filter( 'woocommerce_placeholder_img_src', 'custom_woocommerce_placeholder', 10 );

function custom_woocommerce_placeholder( $image_url ) {
  $image_url = '';
  return $image_url;

Paste your image’s URL to $image_url variable value above.

Adding function to functions.php file should be amended to a child theme. If you make this change to the parent theme, the code would be wiped out when the theme is updated.

To safely adding this function and others, you can use Code Snippets plugin.

If you think it's useful, please share it:

Leave a Comment