Appearance
Show product dimensions in Guild
Documentation scope: Guild 0.1.x pre-release builds. The exact public release version will be confirmed in the changelog before Theme Store publication.
Use Product dimensions to show a product's external width, height, and depth as a compact, proportion-aware drawing with optional measurement labels. It works in Product spotlight (including the Product template) and in editable Product cards that use Custom blocks. Dimensions are supplied by Shopify product metafields, not by a product photo or a 3D model.
1. Prepare the product metafields
In Shopify Admin, go to Settings > Custom data > Products (the exact navigation label may vary). Create these definitions if your store does not already have compatible definitions:
| Namespace and key | Shopify type | What it describes |
|---|---|---|
custom.width | Dimension | External width |
custom.height | Dimension | External height |
custom.depth | Dimension | External depth |
custom.dimensions_apply_to_all_variants | True or false | Confirmation that product-level dimensions apply to every variant |
Open Products, choose a product, and enter the actual measurements in the available dimension fields. The theme accepts millimeters, centimeters, meters, inches, feet, and yards; the diagram compares values after normalizing their units, while displayed values retain their source units. Mixed units are supported, but using one consistent unit across a store is easier for shoppers. The displayed numeric value is not artificially rounded to three decimal places: for example, a valid value of 0.0001 m remains 0.0001 m instead of being shown as 0 m. This preserves precision supplied in the product metafield; it does not invent precision that was never entered.
Only enter dimensions that accurately describe the product. The drawing shows a rectangular external envelope, not the object's exact outline. For a round item or a set of several objects, do not represent a diameter or the set's combined dimensions as width/depth without clearly established measurements.
Products with multiple variants
When a product has more than one variant, set Dimensions apply to all variants to true only if all variants have the same external measurements. This can be appropriate for color or finish options, but it must be checked, not assumed. If variants change size, leave this field unset/false: the current Product dimensions block intentionally does not display different measurements when the selected variant changes. It does not automatically read variant-level dimensions.
The existing text metafield custom.dimensions, if present, is separate. It does not populate the diagram and is not parsed into numeric values.
2. Add Product dimensions in the Theme Editor
Product page or Product spotlight
- Open the Product template or a Product spotlight section, and preview a product with saved measurements.
- In the Product composition, add Product dimensions in a supported Product content position or nested Product layout.
- Choose the Legend mode, optional measurement values, illustration sizing, and appearance.
- Preview at least one product with full dimensions and another without dimensions, then check mobile layout.
Product cards
- Open the relevant Product list in a Collection page or another section containing editable product cards.
- Set Card layout to Custom blocks. Open Product item or Featured product item, and add Product dimensions in the card content.
- Preview multiple real products. Each card uses its own product's metafields and may therefore show a 2D, 3D, text-only, or empty result.
The simpler Default product card renderer does not expose this addable Product dimensions block. Adding the block to one Product list does not automatically add it to every other Product list, Search result, or Collection page.
3. Choose how measurements appear
Guild uses whichever valid positive dimensions are available, subject to the multiple-variant rule above.
| Product data | Display behavior |
|---|---|
| All three: width, height, depth | Proportional isometric 3D envelope |
| Width and height | 2D front view |
| Width and depth | 2D top view |
| Height and depth | 2D side view |
| Only one dimension | Text-only, when Legend is Below illustration |
| No valid dimensions | No storefront block output |
| Extreme proportions that cannot produce a readable drawing | Text-only when Legend is Below illustration; otherwise no output |
Legend
Newly added Product dimensions blocks start with Inside illustration, Show values on measurement lines enabled, Use illustration background enabled, and Show background grid enabled. You can change these options independently in the Theme Editor. Existing blocks retain their saved choices.
Choose one of the three Legend modes:
- None: only the drawing, without a separate legend.
- Inside illustration: short values (for example
W 76 cm) underneath the drawing but within the illustration area. - Below illustration: a formatted list below the illustration, with labels such as Width, Height, and Depth.
Show values on measurement lines is a separate option. It adds measurements next to the drawing's guide lines regardless of the Legend mode. The labels may be positioned beside a short guide rather than directly on it to remain readable.
With Below illustration, customize the label (prefix) Text style, Font size, Font weight, and Show colon after prefix; labels use a stacked layout. The list also provides Item appearance (Default, Boxes, or Dividers), Alignment, applicable Separator, Typography (Body or Heading), and Font size. Dividers use the inline list layout. Some options appear only when the selected layout supports them.
Illustration height, background, and spacing
Under Illustration height, use Auto, Custom (fixed pixel height), or Aspect ratio (preset or Custom). The ratio affects the illustration container, not the shape or proportions of the product envelope. The illustration always preserves its geometry within that container. Very small height or panoramic ratio settings are not absolute clipping limits: Guild may increase the effective height when necessary to keep the SVG and an Inside illustration legend visible. For a consistently compact result, preview the actual product and legend at mobile/card widths.
Use illustration background adds a subtle color derived from the theme's current colors. Set Background opacity between 0% and 15%, and optionally turn on Show background grid. When the background is off, the illustration has no added inner background padding.
Under Spacing, Space between illustration and legend controls the gap to the external legend, and Margin controls the space below the complete Product dimensions block. Both support Custom spacing from 0% to 1000% of the theme’s main spacing scale, in 25% increments.
4. Let shoppers show or hide dimensions on Collection pages
On a Collection page using editable product cards, add or open the Display switcher block. Enable Show dimensions toggle to offer an icon-only control for hiding or showing the available Product dimensions blocks in the current product grid. The button is hidden when the grid contains no Product dimensions content.
- Show dimensions by default sets the initial state only when the shopper has no saved preference.
- Icon selects the indicator. The default is Cuboid; technical icon alternatives include Box, Scan box, Move 3D, Axis 3D, Ruler dimension line, Chart radar, Pencil ruler, Scan, Scan line, and Ruler.
- When browser storage is available, the shopper's choice is remembered in the same browser and takes precedence over the initial default. Guild reads that saved preference early during page rendering to reduce a brief appearance of unwanted diagrams. It remains independent of Grid/List and is reapplied after supported AJAX filtering, sorting, and pagination. If browser storage is unavailable or blocked, the merchant's default is used instead.
- The icon-only control is available on mobile, even when Grid/List controls are hidden. The control does not hide Product dimensions on Product spotlight or Product pages.
The same technical icons are available in supported shared icon selectors such as Buttons > Icon. The button retains an accessible name even though it has no visible text label.
5. Troubleshooting and publication checks
If a Product dimensions block appears in the Theme Editor but nothing appears on the storefront, check the product's Width, Height, and Depth fields first. Text in custom.dimensions alone is not sufficient. For multiple variants, verify that Dimensions apply to all variants is explicitly true and accurate. A product with one measurement needs Legend: Below illustration to display it.
If a Collection page does not show the dimensions button, confirm that Display switcher > Show dimensions toggle is enabled, the Product list uses Custom blocks, and at least one rendered card contains Product dimensions output. A saved browser preference can override Show dimensions by default; clear the saved preference or select the icon to change it.
Before publishing, test a product with 3D measurements, one with 2D measurements, a one-measurement product, a product with missing data, and a multi-variant product. Check the value labels at narrow card widths and on mobile. Product drawings and legend values are informational and do not replace accurate product specifications or customer-facing size guides.
For related help, see Metafields and dynamic sources, Product page setup, Commerce and product discovery, and Why content is missing.