Size comparison
Sizes of a piece shown at real size, side by side.
Sizes of a piece shown at real size, side by side.
- Where it can go: Any page
- Area: Home and storytelling
- Blocks: up to 16
- File:
sections/true-to-scale.liquid
Section settings#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Color scheme | Color scheme | Scheme 2 | |
| Sizes | Choice | Set in blocks | Product metafield: the photos in the product's Size previews metafield, one per size it sells. Options: Set in blocks, Product metafield. |
| Product | Product | With Sizes set to Product metafield. On product pages, leave empty to use the page's product. | |
| Size option name | Text | Size | The option whose values give each size, such as 12 mm. |
| Photo note | Text | Shown under the sizes, for example Shown in yellow gold. | |
| Eyebrow | Text | True to scale | |
| Heading | Text | See the size before you buy | |
| Heading size | Choice | Medium | Options: Extra large, Large, Medium, Small, Extra small. |
| Text | Rich text | ||
| Starting size | Slider 2 to 100 mm | 18 mm | Shown first when a size block has this size. |
Section spacing#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Top spacing | Choice | None | Options: None, Small, Medium, Large. |
| Bottom spacing | Choice | None | Options: None, Small, Medium, Large. |
Blocks#
Size
Type: _true-to-scale-size
| Setting | Type | Default | What it does |
|---|---|---|---|
| Tab | Text | Ear | Sizes with the same tab name share a track. |
| Size | Slider 2 to 100 mm | 18 mm | |
| Image | Image | The piece worn, at this size. Use the same framing for every size. | |
| Product | Product | ||
| Material | Text | Material or finish |
Measure line
| Setting | Type | Default | What it does |
|---|---|---|---|
| Horizontal position | Slider 0 to 100 % | 50 % | |
| Vertical position | Slider 0 to 100 % | 60 % | |
| Different position on mobile | On/off | Off | Phones crop the photo differently; set where the line sits there. |
| Horizontal position on mobile | Slider 0 to 100 % | 50 % | |
| Vertical position on mobile | Slider 0 to 100 % | 60 % |
Developer notes#
Each size is a theme block. The blocks render into a hidden holder; assets/true-to-scale.js sorts their photos, stops and product rows into place and builds the tabs and tracks.