Shopify guides · Updated 2026-11-07

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

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

  1. In your Shopify admin, go to Settings > Metafields and metaobjects.
  2. In the Metafield definitions section, click Products.
  3. Click Add definition.
  4. In Name, enter Size chart. Shopify fills in the namespace and key as custom.size_chart.
  5. Click Select type and choose Page. One page is selected by default. Keep it.
  6. 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.

  1. Go to Online Store > Pages and click Add page.
  2. In Title, enter a name you'll recognize, such as "Size chart: tops."
  3. Add the chart in the content box. Use Insert table in the editor toolbar, or click Show HTML and paste table code.
  4. Under Visibility, choose Visible.
  5. 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.

  1. Go to Online Store > Themes and click Edit theme (or Customize) on your Dawn theme.
  2. 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.
  3. In the left sidebar, find the Product information section and click Add block under it.
  4. Choose Pop-up.
  5. In Link label, enter Size chart (or "Size guide").
  6. Next to Page, click the Connect dynamic source icon and select your Size chart metafield.
  7. Drag the Pop-up block so it sits directly under Variant picker.
  8. 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

  1. Go to Products and open a product.
  2. In the Product metafields section, click the Size chart field, click Select pages, and choose the right chart page.
  3. In the Theme template section (in the right column), select the template you created in Step 3.
  4. Click Save.
  5. 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:

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:

  1. On the duplicate, click … > Edit code.
  2. Open sections/main-product.liquid and search for when 'popup'.
  3. 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 next when.
  4. 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

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 free

Whichever 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.