WooCommerce Change Default Placeholder image of Product Page

Add below code to functions.php of your child theme folder.

Note: To change placeholder image, upload your image to WordPress media library. Get the image ID of the uploaded image as suggested in below image.

WordPress Media Image ID

then replace 2966 from the below code with attachment ID of the image you have uploaded.

Leave a Reply