Hello Shopify Community,
I have a product with multiple variants, each with its own unique image (e.g., different colors: gold, silver, platinum). I’d like to set up my product page so that only the image for the currently selected variant is displayed, and other images are hidden when a different variant is selected.
Essentially, I’m looking for a way to:
- Display only the image associated with the chosen variant.
- Hide other variant images from the gallery view when a different option is selected.
Could anyone advise on how to achieve this? I’d appreciate guidance on any changes needed in Liquid, JavaScript, or CSS to make it work.
Thanks in advance for your help!
