# Dynamic content with metafields

{% hint style="success" %}
**Check out Fluorescent's latest themes on Shopify:** [Eclipse](https://themes.shopify.com/themes/eclipse/styles/journey) | [Stiletto](https://themes.shopify.com/themes/stiletto/styles/vogue) | [Cornerstone](https://themes.shopify.com/themes/cornerstone/styles/flair?locale=en\&surface_detail=listing\&surface_inter_position=1\&surface_intra_position=1\&surface_type=listing)
{% endhint %}

**Metafields** and **Dynamic sources** are Shopify features that allow you to store and display unique content for products, collections, blogs, and pages.

These features are perfect for displaying specific product information — such as size guides or part numbers — for different products that use the same template.

{% hint style="info" %}
This guide provides a general overview of using metafields and dynamic sources. Find instructions for specific theme features below:

* [Accordion blocks](https://help.fluorescent.co/spark/product-pages/product-page-blocks/accordion-block)
* [Information popup](https://help.fluorescent.co/spark/product-pages/product-page-blocks/information-popup#use-metafields-to-display-unique-product-guides) (Size guide)
* [Complementary products](https://help.fluorescent.co/spark/product-pages/product-page-blocks/complementary-products#add-dynamic-content-for-different-products)
* [Stock level indicator](https://help.fluorescent.co/spark/product-pages/product-page-blocks/stock-level-indicator#use-dynamic-sources-for-multiple-products)
* [Sibling product swatches](https://help.fluorescent.co/spark/product-pages/variant-options/sibling-product-swatches)
  {% endhint %}

<table data-view="cards"><thead><tr><th></th><th data-hidden data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td><h4>Watch tutorials</h4><p>Learn how to use metafields in our step-by-step video on YouTube.</p></td><td></td><td></td></tr><tr><td><mark style="color:blue;"><strong>Dynamic content with metafields</strong> | Part 1</mark></td><td><a href="https://youtu.be/RxXo40eVW3c">https://youtu.be/RxXo40eVW3c</a></td><td><a href="https://1721436993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iiuvh8UrcOxEOQkY2iO%2Fuploads%2FLuenoITjGFE3qZUTORFi%2Fyoutube-metafields-part1.webp?alt=media&#x26;token=95dea313-2763-4536-b2fc-aaad3c873d35">youtube-metafields-part1.webp</a></td></tr><tr><td><mark style="color:blue;"><strong>Dynamic content with metafields</strong> | Part 2</mark></td><td><a href="https://youtu.be/gxB6XDhCy80">https://youtu.be/gxB6XDhCy80</a></td><td><a href="https://1721436993-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iiuvh8UrcOxEOQkY2iO%2Fuploads%2FQYQ64nOIAdgj0OIQCqDg%2Fyoutube-metafields-part2.jpeg?alt=media&#x26;token=2aca8f4c-d2c3-435c-8a11-dde4f95d8794">youtube-metafields-part2.jpeg</a></td></tr></tbody></table>

## Overview

***

If you want to display custom content for different pages, you can use Shopify's **metafields** and **dynamic sources**.

* **Metafields** are extra data fields in your Shopify admin that can store additional information and content for products, collections, and pages.
* **Dynamic sources** are what connect metafields to templates and sections. You can add dynamic sources in your theme editor to automatically display metafield content for specific products, collections, or pages.

{% hint style="success" %}
Metafields and dynamic sources are a Shopify feature. Our themes use these features but they are controlled by Shopify. For a full overview, see [Shopify's metafields guide](https://help.shopify.com/en/manual/metafields).
{% endhint %}

## General steps

***

Shopify's **Metafields** lets you store additional information about your products in your Shopify admin. You can create custom fields to hold different types of information.

Once your metafields are set up, you can use **Dynamic sources** in your theme editor to connect metafields to your templates. Dynamic sources automatically use the content entered in the metafield for each product.

{% stepper %}
{% step %}

#### Create metafields

Go to **Settings > Custom data** to create a metafield for a part of your store. The most common metafields are for **Products** and **Collections**.

Add a new **definition** with a **name**, then select the **type** of metafield. The type determines what kind of information the metafield will hold: e.g., text, URLs, or products.

> See Shopify's list of [Metafield content types and values](https://help.shopify.com/en/manual/custom-data/metafields/metafield-definitions/metafield-types)
> {% endstep %}

{% step %}

#### Add content to metafields

The metafields that you create will appear on the admin pages of your products, collections, or other parts of your store.

You can use [Shopify's bulk editor ](https://help.shopify.com/en/manual/custom-data/metafields/bulk-edit-metafields)↗ to add metafield entries for multiple products or collections.
{% endstep %}

{% step %}

#### Insert metafields as dynamic source

Now that the **Metafields** of your products have content, you can connect them to your theme to automatically show the correct information for different parts of your store.

In the theme editor, click on a block or section to open the settings. Click an **Insert dynamic source** button next to a field or setting, and select your metafield.

The setting must support the **type** of metafield: e.g., heading fields require a single-line text metafield.
{% endstep %}
{% endstepper %}

\\

***

> **Related links**\
> [Edit default theme content](https://help.fluorescent.co/spark/general/adapting-your-theme/edit-default-theme-content)\
> [Multiple languages](https://help.fluorescent.co/spark/general/adapting-your-theme/multiple-languages)\
> [Unique content for markets](https://help.fluorescent.co/spark/general/adapting-your-theme/unique-content-for-markets)
