Show Images Based On Chosen Variant in Dawn 11?

Topic summary

  • Issue: In the Shopify Dawn theme (v11), the poster wants product images to change so that only images for the selected variant (e.g., specific color/size) are shown. Currently, all images of that product type display, and existing tutorials they tried have glitches.

  • Update/Solution offered: A reply links to a YouTube tutorial that demonstrates how to display images based on the chosen variant: https://youtu.be/sNL08pJYPy4. No code or steps were included directly in the thread.

  • Status: Unresolved within the thread. The only action item is to follow the linked video tutorial; there’s no confirmation that it works for Dawn 11 or that it fixes the glitches the poster encountered.

Summarized with AI on December 17. AI used: gpt-5.

Hi Shopify Community,

I have been trying to only show certain photos of a variant but at the moment it seems to be showing all the photos of that type. There are tutorials online but they don’t seem to work and there are glitches. I wonder if any of you can help on I can add that code to only show only specific photos for a variant.

Thanks :slightly_smiling_face:

You can display images based on choosen variant: