Fluorescent
Cornerstone
Cornerstone
  • Cornerstone Help Center
    • Start using Cornerstone
      • Migrate your theme
      • Theme licenses
    • FAQs
    • Video tutorials
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • H1 heading tags
      • SEO for Shopify themes
      • 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
    • Colors
    • Fonts
    • Animation
  • Pages
    • Templates
      • Home page
      • Blog page
      • Blog posts
      • Collections list page
      • Contact page
      • Customer accounts
      • Password page
      • Search page
      • 404 page
    • Sections
      • Section styles
      • Content blocks
      • Blog posts
      • Collapsible row list
      • Collection list
      • Collection list buttons
      • Contact form
      • Countdown banner
      • Countdown bar
      • Featured collection
      • Featured collection with media
      • Featured product
      • Grid
      • Icon with text columns
      • Image hero
      • Media with content split
      • Multi-column
      • Newsletter
      • Newsletter compact
      • Overlapping media with content
      • Promotion grid
      • Quick links
      • Rich text
      • Sales banner
      • Scrolling content
      • Slideshow
      • Tabbed collections
      • Testimonials
      • Video hero
    • Popups
      • Sign up popup
      • Age verification
      • Countdown signup popup
      • Promotional popup
  • Header
    • Announcement bar
      • Language selector
      • Country selector
      • Social media icons
      • Announcements
    • Header
      • Logo
      • Layout and style
      • Mega navigation
      • Transparent header
    • Mobile menu
    • Search bar
  • Footer
    • Footer
      • Contact and social block
      • Links block
      • Logo block
      • Newsletter and social block
      • Text and image block
      • Language and currency
      • Payment icons
      • Custom liquid
  • Products
    • Product listings
      • Layout and style
      • Product card details
    • Product badges
    • Quick shop
  • Product pages
    • Product template
    • Layout and style
      • Media gallery
      • Sticky product details
      • Recommended products sidebar
      • Breadcrumbs
      • Navigation buttons
      • Gift card recipient form
    • Overview blocks
      • Product header
      • Description
      • Variant selector
      • Buy buttons
      • Share icons
      • Collapsible rows block
      • Complementary products
      • Custom option
      • Customer support block
      • Image block
      • Image with text block
      • Information popup
      • Product labels
      • Payments and trust
      • Stock level indicator
      • Text block
      • Text columns with icons
      • Text list with icons
      • App blocks
    • Variant options
      • Chips
      • Swatches
        • Enable swatches
        • Use default colors
        • Use custom colors
        • Use custom images
        • Change swatch styles
        • Show on product cards
        • Dynamic option availability
      • Sibling product swatches
      • Media grouping
    • Product recommendations
  • Collection pages
    • Collection template
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Quick cart
      • Added to cart popup
    • 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 20 hours ago

Was this helpful?

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

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

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, then 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 multiple variant media option.

  4. Click Save.

Sibling product swatches
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.