How to add a size chart pop-up in the Dawn theme
Dawn, Shopify's free reference theme, has a built-in Pop-up block that shows the content of any page in a modal window. Connect it to a page reference metafield and each product can show its own size chart in a pop-up next to the size picker, with no app and no code. This guide follows Shopify's own help center tutorial (checked November 2026) and adds the details that tutorial leaves out: how to handle products without a chart, how to set many products at once, and what to do if your Dawn version or theme looks different.
What you'll end up with
- A "Size chart" link in the product information area, wherever you place it (usually just above or below the size picker).
- Clicking it opens a pop-up that shows a Shopify page, so the chart can be a table, an image, or both.
- Each product points to the right chart page through a metafield, so tops, jeans and shoes can have different charts.
It takes about 15 minutes for the first chart. You need an Online Store 2.0 theme that supports dynamic sources. Dawn and the other free Shopify themes do. Vintage themes don't, and need code changes or an app.
Step 1: Create a "Size chart" page metafield for products
- In your Shopify admin, go to Settings > Metafields and metaobjects.
- In the Metafield definitions section, click Products.
- Click Add definition.
- In Name, enter
Size chart. Shopify fills in the namespace and key ascustom.size_chart. - Click Select type and choose Page. One page is selected by default. Keep it.
- Click Save.
Storefront access is on by default for new definitions, which the theme needs to read the value.
Step 2: Create your size chart pages
Make one page per chart. If you sell tops, bottoms and shoes, that's three pages.
- Go to Online Store > Pages and click Add page.
- In Title, enter a name you'll recognize, such as "Size chart: tops."
- Add the chart in the content box. Use Insert table in the editor toolbar, or click Show HTML and paste table code.
- Under Visibility, choose Visible.
- Click Save.
The pop-up shows the page title as its heading, so pick a title you're happy for shoppers to see. To make table code quickly, use our free size chart generator. It outputs a simple table with inline styles that survives Shopify's editor and scrolls sideways on phones. If you need measurements, start from our clothing size chart templates and replace them with your own.
Add one line above the table that says whether the numbers are body or garment measurements, and a short "How to measure" note below it. Those two lines prevent more wrong orders than the table itself.
Step 3: Add the Pop-up block in Dawn's theme editor
Shopify's tutorial uses a new product template, so the link only appears on products that have a chart. That's the cleanest setup for most stores.
- Go to Online Store > Themes and click Edit theme (or Customize) on your Dawn theme.
- From the page drop-down at the top of the editor (it shows Home page by default), choose Products, then click Create template. Name it, for example, "size-chart," and base it on the default product template.
- In the left sidebar, find the Product information section and click Add block under it.
- Choose Pop-up.
- In Link label, enter
Size chart(or "Size guide"). - Next to Page, click the Connect dynamic source icon and select your Size chart metafield.
- Drag the Pop-up block so it sits directly under Variant picker.
- Click Save.
If the dynamic source icon doesn't list your metafield, check that the definition's type is Page and that you're editing a product template, not a page or collection template.
Step 4: Assign a chart and the template to each product
- Go to Products and open a product.
- In the Product metafields section, click the Size chart field, click Select pages, and choose the right chart page.
- In the Theme template section (in the right column), select the template you created in Step 3.
- Click Save.
- Click View to open the product in your store and test the link on desktop and on a phone.
Setting many products at once
Doing this one product at a time gets slow. Two shortcuts:
- Bulk editor for the metafield. In Products, select the products, click Bulk edit, then use the columns menu to add the Size chart metafield column. You can set a page for each row in one screen.
- Skip the template step. If setting the theme template product by product is the slow part, add the Pop-up block to your default product template instead of a new one. Read the next section first, because this changes what products without a chart show.
The empty pop-up problem (and two fixes)
Shopify's tutorial notes this: if a product uses the template but has no page in its metafield, the "Size chart" link still shows and the pop-up opens empty. That's why the tutorial uses a separate template. You have two other options:
Fix 1: Point every product at a default chart
If most products share one chart, put the Pop-up block on the default template and fill the metafield for every product. Products that are not sized (bags, jewelry) get their own template without the block.
Fix 2: Hide the block when the metafield is empty (small code edit)
If you're comfortable editing theme code, you can hide the block when no chart is set. Duplicate your theme first (Online Store > Themes, then the … menu and Duplicate), then edit the copy:
- On the duplicate, click … > Edit code.
- Open
sections/main-product.liquidand search forwhen 'popup'. - Wrap the block's output in a check for the metafield, so it starts with
{%- if product.metafields.custom.size_chart != blank -%}and ends with{%- endif -%}before the nextwhen. - Save, preview a product with and without a chart, and publish the duplicate when it works.
Note that this edit applies to every Pop-up block in the template, and theme updates can overwrite it. Fix 1 avoids code entirely.
Styling and layout tips
- Keep the table narrow. The Dawn pop-up is a centered modal, and on phones it fills the screen width. Five or six columns fit on a phone if the size column is first and headers are short ("Chest," not "Chest circumference (cm)").
- Wrap wide tables in
<div style="overflow-x:auto">so they scroll instead of overflowing. - Images work too. A "how to measure" diagram above the table is fine, but don't use an image for the chart itself. Images of tables are hard to read on phones and can't be read by screen readers or search engines.
- One unit or two. The pop-up shows exactly what the page contains. If you ship internationally, include both a cm table and an inch table on the page, or both values in each cell ("96 cm / 37.8 in").
Alternative in Dawn: Collapsible row
Dawn also has a Collapsible row block in Product information. It has a Row content from page setting that can also take a dynamic source. The chart then opens inline as an accordion instead of a pop-up. This works well on mobile and keeps shoppers on the page. The same empty-content caveat applies.
If your theme isn't Dawn
Most free Shopify themes built on Dawn's code (such as Refresh, Sense, Craft, Studio, Taste, Origin, Colorblock, Ride and Crave) have the same Pop-up block. Shopify's newer themes, such as Horizon, use a different block system, so the block names and options can differ. Click Add block in the product section and look for a pop-up, modal or page-content block. Paid themes often have their own "Size chart" block. If yours has none, see the other methods in how to add a size chart to Shopify.
When to use an app instead
The metafield method is free and solid for a handful of charts. It starts to cost time when you add products often, because every new product needs its metafield (and maybe its template) set by hand, and any you miss show no chart or an empty one. It also shows one unit system, whatever you typed.
Oak Glen Size Charts, our app, works with Online Store 2.0 themes including Dawn. According to its listing, it assigns charts by collection, product type, tag or single product, so new products that match a rule get a chart automatically. It also gives shoppers a cm/inch toggle that converts the values. Charts are stored in your store as Shopify content that you can export.
Skip the per-product metafields. Oak Glen Size Charts shows the right size guide pop-up by collection, type or tag, with a cm/inch toggle. Free plan with 1 chart; Pro is $5.99/month for unlimited charts, with a 7-day trial.
Try Size Charts freeWhichever method you use, the chart only helps if it matches your garments. See how to measure garments for your size chart and how to reduce returns from wrong sizes.
FAQ
Does Dawn have a size chart feature?
Not a dedicated one, but Dawn's Pop-up block can show any page in a modal. Connect its Page setting to a page reference metafield and each product shows its own size chart.
Why is my Dawn size chart pop-up empty?
The product uses a template with the Pop-up block but has no page set in its Size chart metafield. Set the metafield, move the product to a template without the block, or add a small code check that hides the block when the metafield is blank.
Can I show different size charts for different products?
Yes. Create one page per chart and choose the right page in each product's Size chart metafield. The same Pop-up block then shows a different chart on each product.
Does this work in Horizon or other themes?
Dawn-family free themes have the same Pop-up block. Newer themes such as Horizon use a different block system, so look for a pop-up or page-content block under Add block, or use a linked page or an app instead.