• Resolved jayma19

    (@jayma19)


    Hello,

    I created six categories for the services we are selling. No problem
    I assigned an image to each category of services. Still no problem
    I also have assigned images to each individual service. No problem
    However, when I list the services that are in one category, I see something that looks like a clickable empty placeholder right above the name/link of the service I am selling…….???????
    Why is that placeholder there?
    I tried various changes in the Products settings and I could not find anything that
    would allow me to get rid of that empty placeholder.
    How do I get rid of it?
    OR
    What do I populate that place holder with???
    Thank you so much for your help

    Jacques

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    Are you referring to this: https://cld.wthms.co/sPYvDs ?

    That is the product image. You can set it by editing the product. Hiding it will require some custom code as pretty much all themes will show product images.

    You can add a image to the placeholder/product within the right side of your product page.

    You can change the placeholder like this: add this code to your function.php

    /**
    * Change placeholder.
    */
    add_action( ‘init’, ‘custom_fix_thumbnail’ );
    function custom_fix_thumbnail() {
    add_filter(‘woocommerce_placeholder_img_src’, ‘custom_woocommerce_placeholder_img_src’);
    function custom_woocommerce_placeholder_img_src( $src ) {
    $src = get_template_directory_uri() . ‘/placeholder.png’;
    return $src;
    }
    }

    And drop a custom placeholder image in your theme named: placeholder.png

    If you want to remove the placeholder add this to your css:

    img.woocommerce-placeholder.wp-post-image {
    display:none;
    }

    Thread Starter jayma19

    (@jayma19)

    Hello Caleb and phj123,

    Yes, the image that Caleb provided > https://cld.wthms.co/sPYvDs is exactly what I am referring to.

    phj123 > please pardon my ignorance – I just want to remove the placeholder.
    For this I should add
    img.woocommerce-placeholder.wp-post-image {
    display:none;
    }

    to my CSS << correct??

    Thank you both

    Thread Starter jayma19

    (@jayma19)

    Hello Caleb and phj123,

    What confuses me is that I have added images inside the description of each product.
    Is that not the Product Image??
    If not, where is it that I add a product image?

    Thread Starter jayma19

    (@jayma19)

    OK – I did find where to set the product image.
    NP

    Remaining question is for phj123
    What did you mean by “Change the placeholder”??
    Change the placeholder in what way?
    Change its location?
    Change its size?

    Thank you so much

    J

    Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    The first set of code they posted was for changing the default placeholder image.

    I think you are good now that you know how to add a product image though ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘empty placeholder ??’ is closed to new replies.