Support » Plugin: WooCommerce » Generic product image

  • Resolved mrgph

    (@mrgph)


    Hi All,

    Is it possible to add a generic image to appear on all product pages in one go in Woocommerce?

    There are hundreds of products and I don’t want to add the image on every product individually, if possible.

    Much appreciated,

    Gareth

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try this snippet:

    // set custom product image
    add_filter ('woocommerce_placeholder_img_src', 'my_placeholder', 60 );
    function my_placeholder( $default_placeholder_img_src ) {
      return get_site_url().'/wp-content/uploads/my_site_logo.jpg';
    }

    Edit the uploads url to suit your image.

    Plugin Support Hannah S.

    (@fernashes)

    Automattic Happiness Engineer

    Thanks, @lorro!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Generic product image’ is closed to new replies.