Dynamic content with metafields
Last updated
Last updated
Check out Fluorescent's latest themes on Shopify: Eclipse ↗ | Stiletto ↗ | Cornerstone ↗
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.
This guide provides a general overview of using metafields and dynamic sources. Find instructions for specific theme features below:
Information popup (Size guide)
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.
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 ↗.
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.
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 ↗
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 ↗ to add metafield entries for multiple products or collections.
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.
Related links Edit default theme content Multiple languages Unique content for markets
Dynamic content with metafields | Part 1
Dynamic content with metafields | Part 2