How-to
Shopify Size Guide: Page or Popup, With or Without PageFly
A size guide page is one page on your store with all your charts and a “how to measure” section. Product pages link to it. It is easy to maintain because you edit one place. You can build it with Shopify’s own editor for free, or with a page-builder app like PageFly if you want a drag-and-drop layout.
PageFly is a third-party app and changes its interface and plans; this page does not state its current limits. Check its listing before you rely on a feature. The Shopify steps follow Shopify’s documented Pages feature.
What the page should contain
- A short intro: which measurements are used (body or garment) and the unit.
- One table per garment type. Use templates as a start.
- A “How to measure” block with simple steps (see the women’s chart for an example).
- A line for “Between sizes?” and a contact link.
Path A: Shopify’s own page editor (free)
- Online Store > Pages > Add page. Title: “Size guide”.
- In the content editor, add your intro and measuring steps. For tables, use the HTML view and paste this table markup.
- Save and view the page at
/pages/size-guide. - Link it from product pages and from your menu (Online Store > Navigation).
Path B: the PageFly page builder
- Install PageFly from the Shopify App Store and open it from your admin.
- Create a new Page (not a product template) and give it the handle
size-guide, or similar. - Drag in a heading, text, and a table or HTML element for each chart, and a tab or accordion element if you want one chart per garment type.
- Preview on desktop and mobile, then publish.
- Link to the page from product descriptions and the navigation, as in Path A.
When PageFly (or any builder) is worth it: you want a designed page with tabs, images, video of measuring, or you already use the builder for landing pages. When it is not: you only need tables and text. Builders can add scripts and weight to a page; for a size guide the plain editor is often enough.
Link the guide from every product
- Add a text link to
/pages/size-guidein the product description: “Size guide”. - With an Online Store 2.0 theme, add the link once in the product template as a Text or Custom liquid block near the size selector, so it appears on every product.
- Some themes have a built-in size guide pop-up block; if yours does, point it at the page.
Limits
- One page cannot automatically show the right chart for each product; you link to the right section with an anchor, such as
/pages/size-guide#shoes. For per-product charts use the metafield method or an app. - A page builder is an extra monthly cost on some plans.
Shopify Size Chart Popup
A popup keeps the chart one click away without pushing the product description down the page. You can build one with the browser’s built-in <dialog> element, which handles focus and the Escape key for you. It needs no library.
How this page was written: general web practice and Shopify’s documented admin. Themes differ, and we did not test this on your theme. Work on a duplicate of your theme first.
The code
<button type="button" onclick="document.getElementById('size-chart-dialog').showModal()">
Size chart
</button>
<dialog id="size-chart-dialog" aria-labelledby="size-chart-title">
<h2 id="size-chart-title">Size chart</h2>
<div style="overflow-x:auto">
<table>
<thead><tr><th>Size</th><th>Chest (cm)</th><th>Waist (cm)</th></tr></thead>
<tbody>
<tr><td>S</td><td>90</td><td>76</td></tr>
<tr><td>M</td><td>98</td><td>84</td></tr>
</tbody>
</table>
</div>
<form method="dialog"><button>Close</button></form>
</dialog>
The numbers are placeholders. Use your own, or start from a free size chart template.
Where to paste it
- In Shopify admin go to Online Store > Themes, and Duplicate your live theme to work on a copy.
- On the copy, click Customize, open a product template, and add a Custom Liquid block (or a custom HTML block, depending on your theme) under the size selector.
- Paste the code. Save and preview on a phone and a desktop.
- If everything works, publish the copy.
If your theme has no custom block, edit the product section file in the code editor instead. That is a bigger change: keep the copy.
Check before you publish
- Keyboard: Tab to the button, press Enter, then Escape. The popup should open and close and focus should return to the button.
- Phone: the table should scroll sideways if it is wide. The
overflow-x:autowrapper does this. - Backdrop click: a
<dialog>does not close when you click outside it by default. The Close button is enough for most stores. - Duplicates: if you paste this on several products,
idvalues must stay unique per page; one dialog per page is fine.
Limits
- One chart per paste. For different charts per product you would copy the code each time, or drive it from product data: see a different size chart for each product with metafields.
- Your table is code, so editing it means editing code. An app avoids that: best size chart apps for Shopify.
- Showing both units needs extra script: cm and inch toggle for Shopify size charts.
For the other ways to show a chart, see how to add a size chart in Shopify and the plain HTML table.
See also: Size Chart Design: 12 Rules for a Chart Shoppers Use