Fluorescent
Spark
Spark
  • Spark Help Center
    • Start using Spark
      • Migrate your theme
      • Theme licenses
    • FAQs
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • H1 headings tags
      • SEO for Shopify themes
      • Online store speed
    • Image guide
      • Web ready photography
      • Image sizes
      • File formats
      • Theme image settings
    • Adapting theme content
      • Edit default theme content
      • Multiple languages
      • Dynamic content with metafields
      • Unique content for markets
    • Update your theme
      • Upgrade to OS2
  • Theme styles
    • Theme settings
    • Style presets
    • Fonts
    • Colors
    • Animation
    • Buttons
  • Pages
    • Templates
      • About page
      • Blogs page
      • Blog posts template
      • Collections list page
      • Contact page
      • FAQ page
      • Lookbook page
      • Password page
      • Search page
      • 404 page
      • Home page
    • Sections
      • Blog posts
      • Collection list
      • Countdown banner
      • Events
      • Featured collection
      • Featured collection row
      • Featured product
      • Image with features
      • Image with text
      • Inline features
      • Logo list
      • Map
      • Mosaic grid
      • Newsletter
      • Questions and answers
      • Quotes
      • Rich text
      • Shoppable feature
      • Shoppable image
      • Slideshow
      • Social proof
      • Testimonials
      • Text columns with images
      • Video
      • Video hero
    • Popups
  • Header
    • Header
      • Logo
      • Layout and style
      • Transparent header
      • Customer account link
    • Announcement bar
    • Quick search
  • Footer
    • Footer
      • Links block
      • Newsletter block
      • Text and image block
      • Payment icons
      • Language selector
      • Country selector
      • Social media icons
      • Footer text
  • Products
    • Product listings
    • Hover add-to-cart
  • Cart
    • Cart page
    • Fly-out cart
  • Product pages
    • Product template
      • Pre-order template
      • Alternate product template
    • Layout and style
      • Breadcrumbs
      • Navigation buttons
      • Media gallery
      • Quick purchase bar
      • Gift recipient form
    • Product overview blocks
      • Default blocks
        • Title
        • Price
        • Description
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
      • Accordion block
      • Complementary products
      • Custom text field
      • Information popup
      • Payment accordion
      • Security accordion
      • Shipping accordion
      • Stock level indicator
      • Text block
      • App blocks
    • Product page sections
      • Product reviews
      • Recommended products
    • Variant options
      • Variant chips
      • Variant swatches
        • Use default colors
        • Use custom colors
        • Use custom images
        • Show on product cards
        • Dynamic option availability
      • Sibling product swatches
  • Collection pages
    • Collection template
    • Banner
    • Product grid
    • Filters and sorting
  • Support
    • Support policy
    • Shopify vs Theme issues
    • Store access requests
  • For developers
    • Custom CSS
    • Custom fonts
    • Custom Liquid
    • Custom JavaScript events
    • Edit Theme JavaScript
Powered by GitBook
On this page
  • Overview
  • General steps

Was this helpful?

  1. General
  2. Adapting theme content

Dynamic content with metafields

Last updated 3 months ago

Was this helpful?

Check out Fluorescent's latest themes on Shopify: | |

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:

  • (Size guide)

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.

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.

1

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.

2

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.

3

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.


Metafields and dynamic sources are a Shopify feature. Our themes use these features but they are controlled by Shopify. For a full overview, see .

See Shopify's list of

You can use ↗ to add metafield entries for multiple products or collections.

Related links

Shopify's metafields guide ↗
Metafield content types and values ↗
Shopify's bulk editor
Edit default theme content
Multiple languages
Unique content for markets

Watch tutorials

Learn how to use metafields in our step-by-step video on YouTube.

Eclipse ↗
Stiletto ↗
Cornerstone ↗
Accordion blocks
Sibling product swatches
Complementary products
Cover

Dynamic content with metafields | Part 1

Cover

Dynamic content with metafields | Part 2

Stock level indicator
Information popup