Skip to main content

Gallery Card Listing

stylist image

Gallery card listing allows you to create reusable gallery content and organize gallery items into tabs for easier management.

Step 1: Create Metaobject Definitions

From your Shopify Admin, go to Settings → Custom data → Metaobjects.

stylist image

Create the following Metaobject definitions:

stylist image

Add a definition named Gallery Tab, then add the following fields:

Field NameType
Gallery TabSingle line text
LabelSingle line text
KeySingle line text

Click Save.

Add a definition named Gallery Item, then add the following fields:

Field NameType
TitleSingle line text
ImageImage (File)
PositionSingle line text
TabsSelect List of references and choose Metaobjects → Gallery Tab

Note: You must add the Gallery Tab first before you can use Gallery Item. Gallery Item can only select tabs from the Gallery Tab that has already been created.

Click Save.

stylist image

From your Shopify Admin, go to Content → Metaobjects. Create entries for both Gallery Tab and Gallery Item.

  1. Open Gallery Tab and click Add entry.
  2. Label – The text displayed for the tab.
  3. Key – A unique identifier for the tab.
  4. Click Save.

Repeat this process to create multiple Gallery Tab entries if you want multiple tab options.

stylist image

  1. Open Gallery Item and click Add entry.
  2. Title – The gallery item title.
  3. Image – Upload or select an image.
  4. Position – Enter the desired position value.
  5. Tabs – Select one or more Gallery Tab entries created previously.
  6. Click Save.

Repeat this process for all gallery items you want to display.

stylist image

  1. Open the Theme EditorOnline Store → Edit theme.
  2. Navigate to the Gallery card listing section → Select the Image block → Select and choose a Gallery Tab entry.

The gallery will automatically display all Gallery Item entries associated with the selected tab.