• Resolved Stefan

    (@svlieger)


    Hi guys,

    I have a question about my product images. I’m using a plugin that flips the image on hover on the shop page. The image you see on hover is the first image in my product gallery. However, on the product page I’d like to show another photo; the second image in my product gallery. So how do I hide the first image from the gallery, so that only the second image appears on the product page and both thumbnails disappear?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    There isn’t a built-in way to hide the first image from the gallery. You’d need to use some custom coding like this to achieve your requirement.

    I would recommend using a plugin like?Code Snippets?to add the code to your site.

    Thread Starter Stefan

    (@svlieger)

    Thanks for your message!

    That looks a bit too complicated for me… But I found a workaround by deleting the third image and just use two images instead. I added this code to hide the product gallery from the product page:

    remove_action( ‘woocommerce_product_thumbnails’, ‘woocommerce_show_product_thumbnails’, 20 );

    Cheers!

    Hi @svlieger

    Thank you for your reply. Glad to hear you found a workaround. I’m marking this thread as resolved now. If you have further questions, please feel free to open a new topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide first image from product gallery on product page’ is closed to new replies.