Yardage shows fit information wherever a product appears. You enter it in two places, once:
- Fit labels come from Shopify's standard category metafields on each product.
- Size charts live in theme settings and match products by product type or tag.
No apps, custom metafields or metaobjects are needed.
Fit labels from category metafields
Set them up
- In Shopify admin, go to Products and open a product.
- Set Category to the most specific match, for example Apparel & Accessories > Clothing > Pants > Jeans. The category decides which metafields Shopify offers.
- Under Category metafields, fill in the ones you have:
- Fit, for example Slim
- Waist rise, for example Mid
- Pants length type or Top length type
- Sleeve length type
- Click Save.
To fill many products at once, use the bulk editor (select products, then Bulk edit) and add the metafield columns.
Where they show
| Place | What shows |
|---|---|
| Product cards | One line with up to two values, in the order Fit, Waist rise, length, sleeve length: "Slim fit · Mid rise" for jeans, "Medium length · Short sleeve" for a tee (tops and jackets have no Fit or Waist rise in Shopify's categories). Turn it off with Theme settings > Product cards > Show fit on product cards. |
| Product page, Fit block | Fit, Rise, Length and Sleeve, every value listed |
| Featured product, Fit block | Same as the product page |
Values set to Other are skipped. A product without these metafields shows no fit line, never a guess.
Size charts
Size option names
Go to Online Store > Themes > Customize > Theme settings > Fit and sizing.
Ask shoppers to choose a size
Off by default: product pages open with the first available variant selected, like most themes. Turn it on to open product pages, quick buy and the featured product with no size selected. Add to cart then reads Select a size, and Buy it now and pickup availability appear once the shopper picks a size. A link with ?variant= in the URL still opens with that variant selected, and a product with every size sold out says Sold out.
Which options hold sizes
Size option names tells Yardage which product options hold sizes. The default is Size, Waist. Add every name you use, separated by commas, for example Size, Waist, Inseam, Length. Matching ignores upper and lower case but must otherwise be exact: Sizes doesn't match Size.
Size options get:
- with Ask shoppers to choose a size on, no preselected value: the product page says Select a size until the shopper picks one
- measurements for the selected size, from the matching chart
- the saved size shortcut
- the Size guide button
- the size filters first, as chips, on collection and search pages
Add a chart
Each of the four charts has these settings:
| Setting | Example | Notes |
|---|---|---|
| Title | Denim | Shown in the chart caption |
| Products | Jeans, Denim |
Product types or tags, comma-separated |
| Unit | Centimeters | The unit the numbers are in |
| Measurements | see below | First row is the header |
| Fit advice | True to size. Between sizes? Size up. | One line under the chart. A product with a fit scale (a runs: tag) shows its own advice at the top of the size guide instead, so the two never disagree |
Measurements example:
Size, Waist, Hip, Inseam, Leg opening
28, 74, 94, 81, 17
30, 79, 99, 81, 18
32, 84, 104, 82, 19
Rules:
- Rows go on separate lines. Separate cells with tabs (a spreadsheet paste),
|or commas. Yardage checks for tabs first, so decimal commas such as25,5survive a spreadsheet paste. - The first column holds sizes that match your size option values exactly, ignoring case:
28,30,S,M. - When the cm / in switch is on, every column after the first is converted. Keep only numbers in those columns.
How a product finds its chart
A chart applies to a product when:
- the chart has Measurements, and
- its Products list contains the product's Type or one of its Tags (whole value, any case).
Charts are checked in order, 1 to 4. The first match wins. A product with no match shows no measurements, and no size guide unless the Size guide block has a page (see below).
The product Category isn't used for matching. Use Type or a tag.
Where charts show
| Place | What shows |
|---|---|
| Product page, Variant picker block | The selected size's measurements under the picker, for example "Waist 79 cm · Inseam 81 cm". Turn off with Show measurements for the selected size. |
| Product page, Size guide block | The full chart, with the selected size's row highlighted. Display: Drawer (the default) opens it in a panel from the side (from the bottom on phones); Esc, the close button or the browser's Back button closes it. Display: Inline shows a disclosure where the block sits; turn on Open by default to show it open. |
| Product page, size option | A Size guide button beside the first size option's name. It opens the drawer, or opens and scrolls to the inline guide. It only appears when the product section has a Size guide block, and not when an inline guide sits right next to the variant picker (its own toggle is already there). |
| Quick buy sheet | Measurements and the size guide, as a disclosure under the sizes |
| Featured product | Measurements, through the Size and buy buttons block |
Size guide from a page
The Size guide block on the product page can also show a page from Online Store > Pages: how to measure, fit advice, or a size chart you'd rather keep as a page, with images.
- In the theme editor, open the product template and select the Size guide block.
- Under Page, choose the page.
- Under With a size chart, choose Show the page under the chart (the default) or Show only the page.
The page shows in the size guide on every product that uses the template:
- A product with a matching chart shows the chart, then the page, or only the page with Show only the page. Measurements under the sizes and Your size still come from the chart.
- A product with no matching chart shows only the page. The Size guide button still appears beside its size option.
To give different product types different pages, make a product template per type (for example a copy of Default product for outerwear) and choose a page on each.
Measurements follow the first size option on the product. For jeans sold by Waist and Inseam, key the chart to waist sizes.
Saved size
When a shopper picks a size, Yardage remembers it in their browser, per size chart and per size option. On any other product that uses the same chart, the size picker offers a Your size: 32 button. One tap selects it.
- It never selects a size by itself. The shopper always confirms.
- Waist and inseam are remembered separately, so a 32 waist doesn't overwrite a 32 inseam.
- Nothing is stored on your store or sent anywhere. Clearing browser data removes it.
cm / in switch
With Let shoppers switch between cm and inches on, size charts and the measurements line show a cm / in switch. The shopper's choice is remembered in their browser and applies on every page.
Enter each chart in one unit and set Unit to match. Yardage converts the rest.
Fit scale and model info
Two product page blocks add fit guidance from product tags.
Fit scale
Shows where the product sits between Runs small, True to size and Runs large, with one line of advice:
| Tag | Shows | Advice |
|---|---|---|
runs:small |
Runs small | Most people size up one size. |
runs:true |
True to size | Take your usual size. |
runs:large |
Runs large | Most people size down one size. |
To use a metafield instead of tags, connect it to the block's Fit value setting. Allowed values: small, true or large. The setting overrides the tag.
The size guide opens with the same advice ("Runs small. Most people size up one size.") and leaves out the chart's general Fit advice line for that product.
On phones the scale takes one line: a short track with its marker, then the verdict and the advice. The Fit block also takes one line there, with each label beside its value. Both keep all their information; they just take less height, so the size picker starts on the first screen.
Model info
Shows one line with a ruler icon, from a tag such as model:Model is 183 cm and wears 32. Everything after model: is shown as written.
To use a metafield instead, connect it to the block's Model line setting. The setting overrides the tag.
Both blocks print nothing when there's no tag or value.
Add them in the theme editor: open a product page, select the Product section, click Add block, and choose Fit scale or Model info.
Honest size picker
- With Ask shoppers to choose a size on, no size is preselected. Without
?variant=in the URL, the product page, quick buy and featured product show Select a size until the shopper chooses. - Sold-out sizes stay visible and crossed out, and screen readers hear "sold out". Shoppers can still select them to request a restock (see Drops).
- Combinations that don't exist are marked unavailable.