Hide unselected variant images (minimal theme)

I am using the minimal theme, and would like to restrict the number of Image thumbnails showing on the product page.

Current behavior:

  • product pages show all images, for all variants, at all times

Desired behavior:

  • No variant selected on product page: display main image and thumbnails for the product photos that are NOT assigned to a specific variant
  • When a variant is selected by the drop-down menu on a product page: display ONLY the image assigned to the selected product variant, and hide all other photos (other variants and unassigned)

Is there a way to do this without a separate app?

Thanks in advance!

1 Like