# How to add product-specific size charts with Shopify metafields

> Attach a different size chart to each product with metafields and a collapsible row — no app required.

Source: https://pivotal-apps.com/resources/size-charts-on-shopify/shopify-size-chart-metafields  
Author: James Ashley  
Published: 1 September 2025  
Updated: 28 October 2026  
Part of: Size charts on Shopify: the complete guide (chapter 3 of 5) — https://pivotal-apps.com/resources/size-charts-on-shopify

If you want product-specific size charts or more control without using an app, Shopify’s metafields are a powerful solution. This method lets you attach unique size charts to each product and display them directly on product pages.

## Why Use Metafields?

- Display different charts for different products or collections.
- Keep your product pages clean and organized.
- No need for external apps if you’re comfortable with minor theme customizations.

## Step-by-Step Instructions

### Step 1: Create a Product Metafield

![Shopify admin interface showing UI to create a new metafield definition](../../assets/resources/creating-product-metafield.jpg)

*Creating a new metafield definition in the Shopify admin.*

- Navigate to Settings → Metafields and Metaobjects → Products.
- Click Add Definition.
- Enter a name for your metafield, such as size_chart or size_chart_page.
- For Type, select Page → One Page. This allows you to link a standalone size chart page to each product.
- Save the metafield definition.

**Important:** You must create a stand-alone Shopify Page for every unique size chart you need (for example, Men’s T-Shirt Chart, Women’s Hoodie Chart). These pages can remain unpublished/hidden in navigation, as they’re simply containers for the chart content.

### Step 2: Update Your Theme to Display the Metafield

![Shopify theme customize screen editing the default product template](../../assets/resources/insert-metafield-product-template.jpg)

*Inserting a collapsible row with a dynamic data source from our metafield.*

- Go to Online Store → Themes → Customize → Product template (usually Default product).
- Insert a new section or block. A collapsible row works well.
- Set the block’s "Row content from page" to your Size Chart Page metafield: - Click the database icon to pull data from a dynamic source (our metafield), choose the metafield by its name, then Save.

### Step 3: Create and Link Size Chart Pages

![Single product page showing custom metafield box for size_chart_page metafield](../../assets/resources/select-metafield-value-product-page.jpg)

*Selecting the size chart to display on a specific product.*

- In Online Store → Pages, create a page for each chart and add your table/text/images.
- Open each product, scroll to Metafields, and link the correct Size Chart Page you just created.

## Pros and Cons

| Pros | Cons |
|---|---|
| Product-specific size charts | Requires minor theme customization |
| Clean and flexible | Slight learning curve if unfamiliar with metafields |
| No app cost | Charts must be added manually per product |

## Best Practices

- Keep consistent styling across products.
- Make charts mobile-friendly and readable.
- Include supporting text or images to guide customers.

## Frequently asked questions

### What metafield type should I use for a size chart?

Create a product metafield (for example size_chart_page) and set its type to Page → One page. That lets you link each product to the page holding its size chart.

### Do I need a separate page for every size chart?

Yes. Create one Shopify page for each unique chart, such as a men's T-shirt chart and a women's hoodie chart. The pages can stay hidden from your navigation — they're just containers for the chart.

### How do I show the size chart on the product page?

In the theme editor, open the product template, add a collapsible row, and set its “Row content from page” to your size chart metafield using the dynamic source (database) icon.

### Do I need to edit Liquid code to use metafields?

No — it's all done in the Shopify admin and theme editor. The trade-off is that you link each product to its chart manually, which takes ongoing maintenance as your catalogue grows.
