# Info popup

The **Information popup** appears as a clickable link with an icon next to a **variant selector** (e.g. size, color, material).

When clicked, the popup will appear on top of the product page with your info popup content.

<figure><img src="https://3688473072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHUe2h5JnXOGnUNdkJwav%2Fuploads%2FTZqKLP0kRi2ZWsQUp2jH%2Fvariant-popup-link.png?alt=media&#x26;token=bc7f057c-901d-4d00-8332-03ac1438c236" alt=""><figcaption></figcaption></figure>

## Create pages for popup content

***

The **Information popup** displays content from a **Page** created in your Shopify admin. Use Shopify's page editor to [create tables](https://help.shopify.com/en/manual/shopify-admin/productivity-tools/rich-text-editor#insert-tables-with-the-rich-text-editor) with images, links, and other rich text to display in the popup modal.

Add as many pages as you need for unique product guides to tell customers about sizes, materials, or any other details they need to know.

## Set up popup for variant

***

Once you've created a page for your popup content, you can add a **popup** link next to one of your [Product options](https://help.shopify.com/en/manual/products/variants) (for example, *Size* or *Material*).

1. Click **Variant selector** block to open settings.
2. Enter the **Option name** for the product variant you want to show the popup.
3. Under *Content*, click **Select page**.

{% hint style="info" %}
The same page content will appear for every product that uses the same template. You can [display unique popup content for different products](#use-metafields-to-display-unique-product-guides) by using metafields.
{% endhint %}

### Select icon

***

Choose an icon or upload your own to display next to the featured text.

<figure><img src="https://3688473072-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHUe2h5JnXOGnUNdkJwav%2Fuploads%2Fh3BFoIPYtdnPs5Uaseov%2Ficons-menu.png?alt=media&#x26;token=30cc88a3-c6da-4c4d-9194-78cddc6f72b6" alt="" width="226"><figcaption></figcaption></figure>

`Click Popup block to find settings`

<table><thead><tr><th width="190">Setting</th><th width="400">Description</th><th>Options</th></tr></thead><tbody><tr><td><mark style="color:blue;">Icon</mark></td><td>Choose from 40+ free icons.</td><td><em><mark style="background-color:yellow;">Default</mark></em><mark style="background-color:yellow;">: Checkmark</mark></td></tr><tr><td><mark style="color:blue;">Custom icon image</mark></td><td>Upload your own icon image to display next the heading.<br><br>We recommend a PNG image with a transparent background and minimum dimensions of 50px by 50px.</td><td></td></tr></tbody></table>

## Change link text

***

Change the link label of the popup.

`Click Popup block to find settings`

<table><thead><tr><th width="190">Setting</th><th width="400">Description</th><th>Options</th></tr></thead><tbody><tr><td><mark style="color:blue;">Link text</mark></td><td>Enter text to display as the label for the link.</td><td><em><mark style="background-color:yellow;">Default</mark></em><mark style="background-color:yellow;">: "Popup link text"</mark></td></tr></tbody></table>

## Use metafields to display unique product guides

***

You can display unique info popups for different products by using **metafields**. Once you create page content for multiple info popups (e.g. different size charts), you can link those pages to specific products by adding metafields in your Shopify admin.

Then, in the theme editor, insert that metafield as a dynamic source to automatically display the correct information.

Watch the video tutorial or follow the written instructions below.

{% embed url="<https://youtu.be/gxB6XDhCy80?t=43>" %}

### 1. Add 'Page reference' metafield

***

First, you need to add a **Page reference** metafield to your product pages. This field will store the specific page you want to link to each product in your Shopify admin.

{% hint style="warning" %}
Make sure you've created pages with your popup content before following these steps.
{% endhint %}

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your theme editor (**Customize**):

1. Click the **Variant selector** or **Information popup** block to open the settings.
2. Click the **Connect dynamic source** button next to the **Content** option in the **Information popup** settings. Then click **+ Create Metafield**.

   > Alternatively, go to **Settings > Custom data** in your **Shopify admin**.
3. Click the **Products** tab.
4. Click the **Add definition** button in the top-right.
5. Add a **Name** to the metafield that describes what it will be used for so you can remember and find it easily. For example: "Size guide".
6. Click the **(+) Select content type** button and select **Page** under **Reference**.
7. Click **Save**.

</details>

### 2. Link pages with popup content to products

***

Once you've added the **Page reference metafield** to your products in the Shopify admin, you can now enter the specific pages you want for the info popup by going to your **product inventory** in the Shopify admin.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your **Shopify Admin**:

1. Click **Products** in the admin sidebar. Open the product(s) you want to add the info popup page.
2. Scroll down to the **Metafields** section on the product page and click on the metafield you created and click **Select page**.
3. Repeat these steps to update the **Page reference** metafield for each product.
4. Click **Save**.

</details>

### 3. Insert page metafields in theme editor

***

Now that the product **Metafields** you created link to the correct **pages** for your popup content, you can insert that metafield into the theme editor as a **Dynamic source**.

<details>

<summary><mark style="color:blue;"><strong>STEPS</strong></mark></summary>

In your theme editor (**Customize**):

1. Click the **Variant selector** or **Information popup** block to open the settings.
2. Click the **Connect dynamic source** button next to the **Content** option.
3. Select the **Metafield** that you created (e.g. "size guide").
4. You can now view or preview your different products to ensure that the correct **Information popup** content appears on each product page.
5. Click **Save**.

</details>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.fluorescent.co/eclipse/product-pages/variant-options/info-popup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
