> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://essential-grid.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Embed a Video Gallery on Your Product Pages

## Overview
This guide shows you how to create a video gallery in Essential Grid Gallery and display it on your product pages, with the option to show a different gallery — or different videos — on each individual product.
## Prerequisites
* Essential Grid Gallery installed on your Shopify store
* Subscribed to minimum **Standard** plan of the app.
## Part 1 — Create a Video Gallery
* Open the Essential Grid Gallery app from your Shopify admin.
* Use a template to import a ready-made gallery layout.
* Go to the Video Gallery template.
* Install the gallery so it's added to your account.
## Part 2 — Set Up the Gallery Layout
* Go to the gallery's Settings.
* Go to Columns.
* Set the number of columns you'd like the gallery to display, for example 3.
* Save to apply the change.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_1e9exxd.png =900x467)

## Part 3 — Find the Gallery ID
* Go to Naming.
* Copy the Gallery ID shown there. You'll need it in the next part.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_1sp9s59.png =900x510)

## Part 4 — Add the Gallery Block to Your Product Template
* From your Shopify admin, go to Online Store.
* Go to Edit theme to open the theme editor.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_y8ihse.png =900x503)

* Switch the page selector to Products, then choose the product template you want to modify. This loads the sample product page you can edit.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_4o7fdc.png =900x542)

* Add a new block.
* Go to Apps, then select Essential Product Media from the list.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_f726vr.png =900x436)

## Part 5 — Connect the Gallery to Your Products
* In the Essential Product Media block settings, enter a default Gallery ID (Which is 0). This is the gallery that will show on any product that have the video links set in the product metaobject.
* Next to Source metafield, go to the connect dynamic source option.
* Search for and select Essential Grid Gallery Id. This lets each product show its own gallery by setting a value on that product, instead of always using the default.
* Go to Save to apply the block to your product template.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_1vqwadx.png =900x433)

## Part 6 — Set a Gallery for an Individual Product
* Go to Products in your Shopify admin.
* Open the product you want to customize.
* Go to the Essential Grid Gallery Id field on the product page.
* Enter the Gallery ID you want this specific product to use, for example 1.
* Go to the Essential Grid YouTube Videos field.
* Paste a YouTube video link into the input box, then go to Add item to add it to the gallery. Repeat for each additional video.
* Save the product.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_1avtrty.png =900x475)

## Part 7 — Preview Your Gallery
* Preview the product on Online Store.
* Go to the product page you customized to see the video gallery displayed live.
Your video gallery is now embedded and ready for customers to view.

![](https://storage.crisp.chat/users/helpdesk/website/-/f/1/e/1/f1e1cc0327ff9000/image_okfjvj.png =900x422)

## Notes
* The Gallery ID you set in Part 5 acts as the default for every product. Any product-level Gallery ID you set in Part 6 overrides it for that product only.
* You can repeat Part 6 for as many products as you like, using a different Gallery ID or a different set of videos for each one.
* If a product doesn't have its own Gallery ID set, it will automatically fall back to the default gallery from Part 5.