Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor royho

    (@royho)

    That should work but is not recommended as you’re changing core files. Try flushing your cache to see the changes.

    The recommended way to do this is use the filter woocommerce_placeholder_img_src

    Thread Starter skumar1st

    (@skumar1st)

    Thanks royho, Flushing cached but not effect right now.

    What is others method “woocommerce_placeholder_img_src”. Could you please elaborate.

    How can do this?

    Plugin Contributor royho

    (@royho)

    Put the following into your child theme’s functions.php file.

    add_filter( 'woocommerce_placeholder_img_src', 'wc_change_placeholder_image' );
    
    function wc_change_placeholder_image() {
         return 'https://URLTOIMAGE';
    }

    And just replace “https://URLTOIMAGE” with your own URL to the image.

    Thread Starter skumar1st

    (@skumar1st)

    Great royho. Its work but it very big image as uploaded small images. How to show actual size or re-size to small.

    Plugin Contributor royho

    (@royho)

    The image will fill whatever your product image sizes are. So I would suggest you use a higher resolution image so it will scale nicely instead of being pixelated.

    Thread Starter skumar1st

    (@skumar1st)

    Image is high resolution and its look good. But want to reduce image size when click on full product description page.
    And/OR,
    Is any process to hide/remove placeholder image.

    Too much query for one question. Hope for you answer now.

    Please guide me.

    Plugin Contributor royho

    (@royho)

    Just change your image size settings in woocommerce->settings->products->display

    Thread Starter skumar1st

    (@skumar1st)

    I had already tried this change. Basically image is not so important.

    Can I hide/remove from listing?

    Really sorry for too many question for simple thing. Please guide.

    Plugin Contributor royho

    (@royho)

    Sorry I don’t understand what you mean. Also if you’re not asking about the same question as your original thread, I recommend you start a new thread so not to get off topic.

    Thread Starter skumar1st

    (@skumar1st)

    thanks problem solved from actual jpg small size with high rosolution.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Unable to change Placeholder’ is closed to new replies.