If you sell clothing, shoes or accessories, “Which size should I choose?” is probably the most common question you get, and wrong sizes are one of the main reasons for returns. A clear size chart right next to the size selector answers that question before it is asked. In this tutorial, we will learn how to add a size chart in Shopify with only built-in features: we will create a size guide page, link it to products with a page metafield, and show it as a pop-up link on the product page. No app and no code required.
Previously, I published a tutorial on how to add pages and page templates in Shopify. We will use both pages and templates again here, so that article is a good refresher if this is your first time working with them.
Here is an overview of what we are going to do:
Contents
- Which method should you use?
- Step 1: Create a page with your size chart
- Step 2: Create a page reference metafield for products
- Step 3: Add a size chart pop-up to the product template
- Step 4: Assign the size chart and template to your products
- Step 5: Test the size chart on your storefront
- Common errors
- Wrapping up
Which method should you use?
There are three common ways to add a size chart in Shopify:
- Put the table in the product description – quick for one or two products, but you have to copy it into every product and update each one when sizes change.
- Use a page + page reference metafield (recommended) – you write each size chart once as a page, then pick which page each product uses. The theme shows a “Size chart” link that opens the page in a pop-up. This is the method from the official Shopify Help Center pop-up tutorial, and it’s the one we follow below.
- Install a size chart app – useful if you want features like a size recommendation quiz or unit conversion, but it adds a monthly cost and extra scripts to your store.
The metafield method requires a theme that supports dynamic sources, which is every Online Store 2.0 theme (Dawn and the other free Shopify themes). If you’re using a vintage theme, you would need to edit the theme code instead.
Step 1: Create a page with your size chart
First, let’s create the content of the size chart itself.
- From your Shopify admin, go to Online Store > Pages.
- Click Add page.
- In the Title field, enter a name such as
Size chart - T-shirts. - Add your size chart in Content. You can insert a table with the rich text editor, upload an image of your size chart, or click the Show HTML button (
<>) and paste HTML. - In the Visibility section, set the page as Visible.
- Click Save.
I recommend a real HTML table instead of an image: it’s readable on mobile, searchable, and easy to update. Here is a simple example you can paste into the HTML editor and adjust:
<table>
<thead>
<tr><th>Size</th><th>Chest (in)</th><th>Length (in)</th><th>Chest (cm)</th><th>Length (cm)</th></tr>
</thead>
<tbody>
<tr><td>S</td><td>36</td><td>27</td><td>91</td><td>69</td></tr>
<tr><td>M</td><td>40</td><td>28</td><td>102</td><td>71</td></tr>
<tr><td>L</td><td>44</td><td>29</td><td>112</td><td>74</td></tr>
<tr><td>XL</td><td>48</td><td>30</td><td>122</td><td>76</td></tr>
</tbody>
</table>
<p>Measurements are taken with the garment laid flat. If you are between sizes, choose the larger size.</p>
The numbers above are only placeholders, so replace them with your own measurements. You can create as many size chart pages as you need, for example one for T-shirts, one for pants and one for shoes. Each product will later point to exactly one of them.
Tip: these pages don’t need to be in your menu. Customers reach them through the pop-up on the product page.
Step 2: Create a page reference metafield for products
Next, we need a product field that stores “which size chart page belongs to this product”. That’s what a page reference metafield does.
- From your Shopify admin, go to Settings > Metafields and metaobjects.
- In the Metafield definitions section, click Products.
- Click Add definition.
- In the Name field, enter
Size chart. Shopify fills in the namespace and key (for examplecustom.size_chart) automatically. - Click Select type and choose Page. One page is selected by default, which is what we want.
- Click Save.
Storefront access is enabled by default for new definitions. Leave it on, otherwise the theme can’t read the metafield and the pop-up stays empty.
Step 3: Add a size chart pop-up to the product template
Now let’s display the link on the product page. If only some of your products need a size chart (clothing yes, mugs no), create a separate product template so the link doesn’t appear on every product.
- From your Shopify admin, go to Online Store > Themes and click Customize (or Edit theme) on the theme you want to change.
- From the page drop-down at the top of the editor, click Products, then click Create template. Name it
size-chartand base it on the Default product template. - In the sidebar, go to Template > Product information and click Add block.
- Select Pop-up.
- In the Link label field, enter
Size chart. This is the text customers click. - Next to Page, click the dynamic source icon (it looks like a small stack of discs) and select the Size chart metafield you created in Step 2.
- Drag the Pop-up block right under the Variant picker, so it sits next to the size options, and click Save.
Prefer an expandable section instead of a pop-up? In Dawn and many other free themes, you can add a Collapsible row block, set its heading to Size chart, and connect the Row content from page setting to the same metafield with the dynamic source icon. The size chart then opens inline under the product details.
Block names vary from theme to theme. If you don’t see Pop-up or Collapsible row, look for a block with a Page setting that shows the dynamic source icon, or check your theme’s documentation.
Step 4: Assign the size chart and template to your products
The last step is to tell each product which size chart page to use, and to switch it to the new template.
- From your Shopify admin, go to Products and open a product, for example
Classic Cotton T-Shirt. - Scroll to the Product metafields section, click Size chart, then click Select pages and choose your size chart page.
- In the Theme template section, select the
size-charttemplate you created in Step 3. - Click Save.
Repeat this for every product that needs a size chart. Products that share the same sizes can point to the same page, so you only maintain one table per product type. Since sizes are usually product variants, make sure your size options are set up correctly first. I covered that in the tutorial on how to add products and variants in Shopify.
Step 5: Test the size chart on your storefront
- Open one of the products in your online store.
- Check that the Size chart link appears near the size selector.
- Click it: a pop-up should open with the content of your size chart page.
- Test on your phone too. Wide tables can be hard to read on small screens, so keep the number of columns low or split inches and centimeters into two tables.
Once the size chart works, you can help customers even more by suggesting alternatives on the same page. Here is how to add related products in Shopify.
Common errors
The “Size chart” link shows, but the pop-up is empty
The product uses the size chart template but has no page selected in the Size chart metafield. When the metafield is blank, the link still appears and opens an empty pop-up. Assign a page to the product, or switch the product back to the default template.
I can’t find my metafield in the dynamic source list
The dynamic source list only shows metafields whose type matches the setting. The Page setting of the Pop-up block accepts only a Page metafield, so if you created a text or file metafield it won’t appear. Create a new definition with the type Page. Also check that Storefront access is enabled for the definition.
There is no dynamic source icon in my theme
Your theme is probably a vintage (non-Online Store 2.0) theme. Either upgrade to a 2.0 theme such as Dawn, or add the size chart table directly to the product description as a workaround.
The size chart appears on products that don’t need it
You added the block to the Default product template, which is used by all products. Move the block to a separate template and assign that template only to clothing products.
Wrapping up
That’s how to add a size chart in Shopify without an app: write your size chart once as a page, create a Page metafield for products, add a Pop-up (or Collapsible row) block connected to that metafield in a dedicated product template, and assign the page and template to each product. When your sizes change, you update a single page and every product is updated automatically.
Did adding a size chart reduce your size-related returns? If you get stuck with any of the steps above, leave a comment below and I will be happy to help.






