Fluorescent
Stiletto
Stiletto
  • Stiletto Help Center
    • Start using Stiletto
      • Theme licenses
      • Migrate your theme
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • SEO for Shopify themes
      • H1 heading tags
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
  • Theme styles
    • Theme settings
    • Style presets
      • Demo layouts
    • Fonts
    • Colors
    • Animation
  • Pages
    • Templates
      • About page
      • Blog page
      • Blog posts
      • Collections list
      • Contact page
      • Customer accounts
      • FAQ page
      • Lookbook
      • Password page
      • Search page
      • Store locations
      • 404 page
      • Home page
    • Announcement bar
    • Header
      • Layout and style
      • Logo
      • Transparent header
      • Mega menus
      • Mobile menu
      • Quick search
      • Language and currency
      • Social media icons
      • Customer account icon
    • Footer
      • Links block
      • Newsletter block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom Liquid
  • Sections
    • Theme sections
      • Using sections
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list grid
      • Collection list slider
      • Complete the look
      • Contact form
      • Countdown banner
      • Countdown bar
      • Events
      • Featured collection grid
      • Featured collection slider
      • Featured product
      • Gallery carousel
      • Grid
      • Image compare
      • Image hero
      • Image hero split
      • Image with text
      • Image with text split
      • Multi column
      • Newsletter
      • Newsletter compact
      • Promotion banner
      • Promotion bar
      • Quotes
      • Recently viewed products
      • Rich text
      • Sales banner
      • Scrolling content
      • Shoppable image
      • Shoppable image editorial
      • Slideshow
      • Testimonials
      • Video
      • Video hero
      • Video with text
    • Popups
      • Sign up popup
      • Age verification
      • Countdown popup
      • Promotional popup
  • Products
    • Product listings
      • Product card style
    • Prices and discounts
    • Product badges
    • Quick shop
  • Product pages
    • Product template
      • Alternate templates
      • Pre-order template
      • Gift card
    • Layout and style
      • Product tabs
      • Media gallery
      • Sticky product details
      • Breadcrumbs
      • Navigation buttons
    • Overview blocks
      • Default blocks
        • Description
        • Product header
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
        • Sticky add-to-cart bar
      • Collapsible rows block
      • Complementary products
      • Custom options
      • Image block
      • Information popup
      • Product labels
      • Secure payment
      • Stock level indicator
      • Text block
      • Text list with icons
      • App blocks
    • Variant options
      • Variant chips
      • Variant swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use variant images
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Media grouping
      • Sibling product swatches
    • Product page sections
      • Product reviews
      • Product recommendations
  • Collection pages
    • Collection template
      • Collection landing
      • Sale collection
      • Subcollections
      • Flash sale
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
      • Empty cart promotion
    • Free shipping bar
    • Low inventory warning
    • Cross sells
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Set up media groups
  • Enable media grouping

Was this helpful?

  1. Product pages
  2. Variant options

Media grouping

Last updated 2 months ago

Was this helpful?

With media grouping, your product pages will show only the relevant media for the selected variant and hide the rest.

If you want to show different product details as well as images, you may want to use , which links variants to their own product pages.

Why is the featured product image blank?

If you have and the option enabled, the featured image may be blank if the featured image is not included in a media grouping. Either add the featured image as the first image in each media grouping, or turn off the option to show featured media first(click Product overview section to find settings).

Set up media groups


To create media groups for variants, first re-order the product media for each of variant in sequence, so that they are grouped together and follow the same order as your product options. Then assign the first image of each group to the related variant.

When selected, variants will display the assigned image and all following images up until the next variant's assigned image.

In your Shopify admin, go to Products to open the product you want to edit:

1

Re-order product media in the same order as variants

Using the drag-and-drop handles ⋮⋮, re-order your product media to group together items for each variant. The order of the groups should match the order of the variants.

All media for the first variant should be in the top positions, followed by all media for the second variant, followed by all media for the third variant, etc.

2

Assign the first image of each group to variants

In the Variants section, click the Add image button next to each variant. Select the first image of the group related to that variant.

If no image is assigned, the media gallery will not update and will continue to show images of the previously selected variant.

If your product has multiple options, assign the first image to each variant of that option.

For example, if your product has both color and size options, assign the first group image to variants with the same color.

Enable media grouping


After you've set up media groups for your variant images, you can enable media grouping in the Product overview settings of your product template.

In your theme editor (Customize):

  1. Open the product template.

  2. Click the Product overview section.

  3. Toggle on Enable media grouping option.

  4. Click Save.


Related links

Media gallery
Variant swatches
Sibling product swatches
Sibling product swatches
media grouping
show featured media first
Images ordered for the color variants 'Purple', 'Green,' and 'Yellow'.
Assign the first group image to the related variant.
For multiple product options, assign the first group image to each related variant.