URGENT Display first image instead of first variant image DAWN

Topic summary

A user seeks to display a product’s first image instead of the first variant image on their Shopify Dawn theme product page.

Issue Context:

  • The problem occurs on a Montessori educational toys product page
  • Default behavior shows variant-specific images rather than the main product image

Solution Provided:

  • Modify the main-product.liquid section file in the Dawn theme
  • Two approaches suggested:
    1. Add a custom image element for the featured product image
    2. Modify the product gallery logic to assign featured_media as the product’s featured media instead of variant-specific media
  • Reference code location: sections/main-product.liquid around line 79 and the product-media-gallery snippet

Note: A moderator warned against marking posts as “URGENT” unless critical systems (admin, payment gateways) are down, as this may lead to being ignored or banned.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hello guys, I would like to display the first image of my product on the product page not the first variant please:

https://jeux-educatifs-montessori.fr/products/jouet-montessori-magnetic-sticks

thank you

yes I know do you know what to change ?

@vseazonnn DO NOT abuse urgency it is not clever but is a good way for people with actual knowledge to ignore your future issues, or just get yourself banned.

Actual urgency is if an admin isn’t working, gateways aren’t working ,etc.

Either double check for a relevant section,

You need to go into the main-product section

example: https://github.com/Shopify/dawn/blob/main/sections/main-product.liquid#L79C9-L79C77

And either add a custom image element for the featured product image , OR modify the product-gallery logic so the featured_media is assign the product.featured_media

example: https://github.com/Shopify/dawn/blob/main/snippets/product-media-gallery.liquid