Fluorescent
Ira
Ira
  • Ira Help Center
    • ⚠️Theme retirement
    • FAQs
    • Theme updates
      • Upgrade to OS2
    • Changelog
  • General
    • Editing themes
      • Adding sections
      • Using templates
      • Accessibility
      • Customizing your site
      • 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
  • Theme styles
    • Theme settings
    • Style presets
    • Fonts
    • Colors
    • Animation
    • Layout
    • Quick shop
  • Pages
    • Templates
      • About page
      • Blogs page
      • Blog posts template
      • Collections list page
      • Contact page
      • Password page
      • Search page
      • 404 page
      • Home page
    • Announcement bar
    • Header
      • Logo
      • Layout and style
      • Mega navigation
      • Transparent header
      • Quick search
      • Customer account link
    • Footer
      • Links block
      • Newsletter block
      • Text block
      • Language selector
      • Country selector
      • Payment icons
      • Social media icons
      • Footer text
  • Sections
    • Theme sections
      • Blog posts
      • Collection list
      • Featured collection
      • Featured product
      • Featured products
      • Gallery
      • Image with text
      • Map
      • Mosaic grid (2 columns)
      • Mosaic grid (3 columns)
      • Newsletter
      • Rich text
      • Slideshow
      • Testimonials
      • Text columns with images
      • Video
    • Popups
  • Products
    • Product listings
  • Product pages
    • Product template
      • Pre-order template
      • Gift recipient form
    • Layout and style
    • Product page blocks
      • Default blocks
        • Title
        • Price
        • Description
        • Variant selector
        • Quantity selector
        • Buy buttons
        • Local pickup banner
        • Share icons
      • Accordion block
      • Information popup
      • Stock level indicator
      • Text block
      • App blocks
    • Product page sections
      • Product reviews
      • Recommended products
      • Complementary products
    • Variant chips
    • Variant swatches
      • Enable swatches
      • Use default colors
      • Use custom images
      • Show on product listings
  • Collection pages
    • Collection template
    • Banner
    • Product grid
    • Filters and sorting
  • Cart
    • Cart page
    • Fly-out cart
  • 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
  • Watch video tutorials
  • Overview
  • General steps
  • 1. Create metafields for products
  • 2. Add content to metafields
  • 3. Insert metafields as dynamic sources

Was this helpful?

  1. General
  2. Adapting theme content

Dynamic content with metafields

Last updated 1 year ago

Was this helpful?

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 in our themes. Follow the links below for instructions for using dynamic sources for specific theme features.

  • (Size guide)

Watch video tutorials

Watch the step-by-step tutorials for the Metafields. The first video provides a general introduction, and the second video shows you how to use metafields for unique size guides and complementary products.

Overview

If you want to display specific content for different products, you can use Shopify's metafields and dynamic sources. These features allow you to store and automatically display unique content for different products.

  • Metafields are extra data fields in your Shopify admin that can store additional information and content for products, collections, blogs, and pages.

  • Dynamic sources are what connect metafields to templates and sections. When added to the theme editor, they automatically display metafield content for specific products and pages that use the same template.

General steps

Follow the steps below to add metafields to store unique text for different products.

Then, use Dynamic sources to connect metafields to specific settings in your theme editor. Your theme will automatically use the content entered in the metafield for the product that's currently being viewed.

1. Create metafields for products

Shopify's Metafields lets you store additional information about your products. You can create custom fields to hold different types of information in your Shopify admin, and enter unique content for each of your products.

The steps below tell you how to add a metafield with links to Shopify's guides for different metafield types.

STEPS

In your Shopify admin:

  1. Go to Settings > Custom data.

  2. Click the Products tab.

  3. Click the Add definition button in the top-right.

  4. Enter a Name that describes what information the metafield will contain.

  5. Click (+) Select type and choose what type of metafield you want to use.

  6. Click Save.

2. Add content to metafields

Once you've created Metafields for your products in the Shopify admin, you can now add content to those fields for your products in the Shopify admin.

STEPS

In your Shopify admin:

  1. Go to your Product inventory in your Shopify admin and open one of your Products.

  2. Scroll down to the Metafields section and enter update the metafields that you created.

  3. Click Save.

3. Insert metafields as dynamic sources

Now that the Metafields of your products have content, you can go to the theme editor to insert a Dynamic source.

STEPS

In your theme editor (Customize):

  1. Click on a block or section to open the settings.

  2. Click an Insert dynamic source button next to a field or setting.

  3. Select the Metafield that you created.

  4. You can now preview your store to confirm the correct content or settings appears when viewing different products.

  5. Click Save.


Shopify | 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

Related links

Shopify's metafields guide
Metafield content types and values
Edit default theme content
Multiple languages
Unique content for markets
Accordion blocks
Information popup
Stock level indicator