> For the complete documentation index, see [llms.txt](https://reputon.gitbook.io/reputon-help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://reputon.gitbook.io/reputon-help/youtube-video-gallery/how-to/add-youtube-videos-to-different-products.md).

# Add YouTube videos to different products

Show different YouTube videos on different product pages by assigning each product its own Shopify template with a dedicated video widget.

By default, one video widget appears on all product pages. This guide shows how to display different videos for different products.

**How it works:** In Shopify, each product page uses a template. If you assign a dedicated template to a product, you can add a separate widget to it, with its own videos.

<figure><img src="https://823272398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN5Pck9HNYnqE29Mx45Jb%2Fuploads%2FsWhgUEjqsCDasMvNhLit%2FScreenshot%25202024-06-05%2520at%252012.39.45.png?alt=media&amp;token=03dbd373-2f02-441f-8960-379d9afae402" alt=""><figcaption></figcaption></figure>

**Step 1: Create a new template in Shopify**

1. Go to **Online Store** → [**Themes**](https://admin.shopify.com/themes) and click **Customize**.
2. Open the **Template** dropdown at the top and click **+ Create template**.
3. Give your template a unique name.
4. Choose an existing template to base it on and click **Create template**.

Repeat for each group of products that needs different videos.

<figure><img src="https://823272398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN5Pck9HNYnqE29Mx45Jb%2Fuploads%2F1x0i2VJaBN0pIZjCqpy4%2FScreenshot%25202024-06-05%2520at%252013.13.48.png?alt=media&amp;token=3d88653e-da15-4c7a-bad6-2ec50f60f85c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://823272398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN5Pck9HNYnqE29Mx45Jb%2Fuploads%2FFOlKxrX1gvV73bMSxGky%2FScreenshot%25202024-06-05%2520at%252013.16.21.png?alt=media&amp;token=45c831b1-c9c9-4dbd-9b94-ba3cd880b1ed" alt=""><figcaption></figcaption></figure>

**Step 2: Assign a product to the new template**

1. Go to [**Products**](https://admin.shopify.com/products) and open a product.
2. Scroll to **Theme template** and select your new template from the dropdown.
3. Click **Save**.

Repeat for every product that should use this template.

<figure><img src="https://823272398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN5Pck9HNYnqE29Mx45Jb%2Fuploads%2F0Q2ELVHcMQbEjdls1JmB%2FScreenshot%25202024-06-05%2520at%252013.21.43.png?alt=media&amp;token=12029174-7341-43e6-8eb8-0a72850f1bc1" alt=""><figcaption></figcaption></figure>

**Step 3: Add a widget to the template**

1. In the app, create a new widget and connect it to a YouTube channel or playlist.
2. When choosing where to place the widget, select your new template, not the default one.
3. Save.

The widget will now appear only on product pages that use this template.

<figure><img src="https://823272398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FN5Pck9HNYnqE29Mx45Jb%2Fuploads%2FWlxtdLNZKoVyJdHXzrkf%2FScreenshot%25202024-06-05%2520at%252013.42.44.png?alt=media&amp;token=fa1004fd-8abb-4d6a-b580-e3dea01d0832" alt=""><figcaption></figcaption></figure>

***

{% hint style="info" icon="comments-question-check" %}
**Questions about the feature or need assistance? We're here to help:** [**support@reputon.com**](mailto:support@reputon.com) **or** [**live chat**](https://go.crisp.chat/chat/embed/?website_id=d24ef16e-6e05-49e9-bd59-a6f3bde0658a)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://reputon.gitbook.io/reputon-help/youtube-video-gallery/how-to/add-youtube-videos-to-different-products.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
