Display a Metafield on the Product Page
There are two methods for displaying metafields on Shopify product pages.
For this tutorial, we'll use an example metafield:
- Type: Multi-line text
- Namespace:
additional_info - Key:
subtitle
Method 1: Custom Liquid Block (Online Store 2.0 Only)
This is the easiest approach and works with any Online Store 2.0 theme.
- Go to Shopify admin → Online store → Themes → Customize
- Navigate to the product page template, and select a test product that has the metafield
- Click the blue "+" icon → select Custom Liquid
- In Metafield Studio, go to your product → Actions → Copy Liquid code
- Paste the copied code into the Custom Liquid content box
- Verify the metafield appears in the preview
- Click Save
Dynamic Sources
To use a metafield as a dynamic data source in the theme editor, you need to create a metafield definition first. However, definitions have limitations: max 250 total definitions and no HTML rendering support. Metafield Studio's Liquid code supports formatted HTML rendering, while Shopify's standard picker displays escaped HTML as plain text.
Method 2: Edit Theme Template File (All Themes)
This method works with any Shopify theme but requires editing Liquid code directly.
- Go to Online store → Themes → Actions → Edit code
- Navigate to the sections folder → find
product-template.liquid - Locate the product title section and position your cursor below it
- In Metafield Studio, copy the Liquid code from your product (Actions → Copy Liquid code)
- Paste the code into the template file
- Click Save
- Verify on your storefront