> For the complete documentation index, see [llms.txt](https://modutheme.gitbook.io/helix/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://modutheme.gitbook.io/helix/how-to-guides/how-to-use-metafields-to-show-different-images-per-collection.md).

# How to use metafields to show different images per collection

By default, the Collection Banner uses the collection's featured image. You can create a collection metafield (for example `custom.banner_image`) and connect it to the banner's **Custom image** setting, so each collection shows a unique banner without changing its main product image.

This guide covers the metafield setup only. For the banner's own layout, source, and styling options, see [Collection Banner](/helix/collection-page-sections/collection-page-sections/collection-banner.md).

![A collection banner using a custom per-collection image](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-2eeef3a85d567decfb1cd816aa6a231af80655e9%2Fhow-to-collection-images-overview.png?alt=media)

***

**Step 1 — Create the metafield definition**

In Shopify Admin, go to **Settings → Metafields and metaobjects → Collections**, click **Add definition**, and configure:

* **Name** — `Banner image`
* **Namespace and key** — `custom.banner_image`
* **Type** — File — Image, one value

![Creating the Banner image collection metafield definition](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-8458b7bd8aee51576d685709dc538f326961a991%2Fhow-to-collection-images-metafield.png?alt=media)

**Step 2 — Assign an image to a collection**

Open a collection, scroll to **Metafields → Banner image**, upload the image, and save.

![Uploading a banner image to a collection's metafield](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-fe13a0458224b24802c1a37afc7814a60e3fa155%2Fhow-to-collection-images-assign.png?alt=media)

**Step 3 — Connect the metafield to the section**

In the theme editor, open the **Collection banner** section and set:

1. Set **Layout** to **Background** or **Split** (the image options only appear for these layouts).
2. Set **Source** to **Custom**.
3. On the **Custom image** field, click the **Connect dynamic source** icon (the database icon next to the field), then select your **Banner image** collection metafield (`custom.banner_image`).
4. Click **Save**.

![Connecting the Banner image metafield to the Collection banner's Custom image](https://3215967854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlyCMfKbEVTf3hu8uxjSZ%2Fuploads%2Fgit-blob-fde0b96ad469112b44d686cd47d120fb3554f24a%2Fhow-to-collection-images-connect.png?alt=media)

{% hint style="info" %}
**Tip:** Helix does not read a fixed metafield key here — you must connect the metafield to the **Custom image** field with **Connect dynamic source**. When **Source** is **Custom** but no image (and no dynamic source) is connected, the banner falls back to the collection's featured image. Connecting a per-collection metafield overrides the default for that collection only — no template duplication needed.
{% endhint %}

***

{% hint style="info" icon="headset" %}
**Need help?**

Whether you have a question, run into an issue, or just need some guidance, our support team is here to help.

<a href="https://go.crisp.chat/chat/embed/?website_id=6c25581e-794a-41b4-8552-52f3de1dd1f7" class="button secondary" data-icon="comments">Chat with us</a> <a href="https://modutheme.ticksy.com" class="button primary" data-icon="ticket">Submit a ticket</a>
{% endhint %}
