---
title: "Using Metafield – Dynamic Source"
description: "How to Use Metafields and Dynamic Source to Add Lookfy Gallery to Products, inner Pages and Collections in Shopify"
url: https://help.lookfy.app/en/articles/15-using-metafield-dynamic-source
collection: "Publish gallery"
updated: 2026-09-09
language: en
---

# Using Metafield – Dynamic Source

How to Use Metafields and Dynamic Source to Add Lookfy Gallery to Products, inner Pages and Collections in Shopify

## **Add app block**

At **Online Store** → **Themes** → **Customize** (Current theme), then click **Products** in the template selection dropdown (if you want to add Lookfy gallery to page or collection, you have to choose the corresponding template).

![](https://staticfiles.gleap.io/gattachments/idkxNDepyTWAhoW9VrV83LjMWHBYs8S9j4tpmHv1dFpmNNn1frlaYj8nOAC2vs9Bq0SjwAuUVPW.png)

![](https://staticfiles.gleap.io/ghelparticle/iTpp4H57JTg1gGPOM2JEfAW9to2Qb1m26cRElqgYlqhNWu1Q7BDoKoUgReWSrKIcvkLIwDV2U0g.png)

  
Click **Add section** then choose **LookBook & Gallery**

## **Connect dynamic source**

In the LookBook & Gallery app block, click “Insert dynamic source” icon

![](https://staticfiles.gleap.io/ghelparticle/3IfwMSG3oRDaLcGWK1sd60zKLKgSRfwdubvblYSlU9NI1PhT9a0aFOpOuvLuSB6gj5Bzy36b3hZ.png)

Then choose **Lookfy Gallery ID** 

![](https://staticfiles.gleap.io/ghelparticle/Kxoo9obtWgAkJERQ44ZlZIAeKJcCfifhlPpEik6LYFmUHSdonyJ5cxV6iUQ3IgM3iOw2lxC1CZo.png)

The **Gallery id** here will be ignored

![](https://staticfiles.gleap.io/ghelparticle/pLmqybgUOrgFq5NTJO1PpWgdsxhXuT9yyd2OoF4Qpt3Zs41RZkDssb7ahftaVsAsVfa42gF5sZP.png)

## **Fill Gallery ID in your product**

Please open the product (that is **using this template**) details page in the admin to fill the ID of the gallery that you want to show on this product page.  
  
At **Metafields** section, click **View all**

![](https://staticfiles.gleap.io/gattachments/ywgg09FGcfcxhsp8M7xldO6HEkDfCnkYGcUPPLGrrlq37IWa5fGFEC5Z1cl0RLEi8ruHhdvBS9d.png)

Then fill the ID into the box

![](https://staticfiles.gleap.io/gattachments/C8aIJ68oh9rcrTM5KZy0Pkunc2Pr8XV6ocBx9LOg0olCOZXjtCukhAWxidYRn8qjaL3zpU1JxeO.png)

Please save all the changes, and you are done.

## Pin the metafield Lookfy Gallery ID

For quickly view and access, you can pin metafield Lookfy Gallery ID.  
In the above view, please double click **Lookfy Gallery ID**:

![](https://staticfiles.gleap.io/gattachments/qq3l268LHBJF5NN6wdODf90fQ5XAv7w24UdqTTNzcWWFngoXZfWHK8pHiGAHnQhsgDPiEb5L960.png)

It will open a page for editing this metafield:

![](https://staticfiles.gleap.io/gattachments/lxshGUqlbRrSZP3t0Q6soRUP6FxT4sVS7Yl5YqKvYu7FaMUjtAoMAyHgHkj5BRQEVVJQaLvPTdJ.png)

Click **Pin definition**, then click **Save.**

Now after reloading the product page in admin, you can see the metafield Lookfy Gallery ID in the first view of **Metafields** section, without doing one more step (clicking **View all)**.

![](https://staticfiles.gleap.io/gattachments/bFr2eaATzSm15UHbgx8vCBZpxoO7SOprO5GezhLT5JjB72uv8rZTS7MFZrMa9NvXSh0n5mx6eaT.png)

[

How do I find the gallery ID?

This guide will help you locate the Gallery ID in the Lookfy app on your Shopify account. Follow the steps below to find the ID efficiently.

](https://help.lookfy.app/en/articles/11-how-do-i-find-the-gallery-id.md)
