# Metafields ## Add a metafield definition 1. In Shopify admin, go to **Settings → Metafields and metaobjects → Products → Add definition**. 2. Use the namespace and key from the table below, for example `custom.temp_min`, and the type shown. 3. Open a product and fill in the value at the bottom of its page. When a value is empty, the part of the page that uses it is hidden. @image(media/guides/admin-metafields.jpg "Product metafield definitions on the demo store, with how many products use each" "Admin") ## Connect a metafield to a setting Most text, image, product and collection settings in the theme editor can read a metafield instead of a fixed value, so each product or collection shows its own: 1. Open a product template in the theme editor and select the section or block. 2. Next to the setting, select **Connect dynamic source** (the stacked-disks icon). 3. Pick the metafield. Settings only offer metafields of a matching type. The setting then shows the metafield's name; products without a value fall back to the theme's empty state for that setting. ## Use metafields you already have Moving from another theme or an app that already stores this data under other names? You don't need to copy it. Open **Theme settings → Metafields** and type your own `namespace.key` next to the field it matches, for example `my_fields.subtitle` for **Descriptor**. The theme then reads your metafield everywhere it would read its own. The type must match the one in the table below. ## All metafields Create these definitions in Shopify admin under Settings → Metafields and metaobjects → Products. Every one is optional: when a value is empty, the matching UI is hidden or shows a dash. | Namespace and key | Type | Used by | |---|---|---| | `custom.support_level` | Integer (1–5) | Card badge, fit note, performance profile, compare | | `custom.compression` | Integer (1–5) | Performance profile, compare | | `custom.stretch` | Integer (1–5) | Performance profile, compare | | `custom.breathability` | Integer (1–5) | Performance profile, compare | | `custom.temp_min` / `custom.temp_max` | Integer (°C) | Temperature range, compare, conditions kit | | `custom.conditions` | List of single line text, or single line text separated by commas (keys like rain, wind, dark) | Conditions kit | | `custom.activity` | Single line text (Run, Train, Yoga, Recover) | Fit note and card badge matching, compare | | `custom.descriptor` | Single line text | One-line card description, compare | | `custom.feel` | Single line text | Compare | | `custom.inseam` | Single line text | Compare | | `custom.rise` | Single line text | Compare | | `custom.pockets` | Single line text | Compare | | `custom.pocket_map` | List of `pocket` metaobjects | Pocket map | | `custom.best_for` | Single line text naming options from the performance section (e.g. "Long run, Tempo") | Performance profile, compare | | `custom.highlights` | List of single line text, single line text separated by commas, or a list of metaobjects with `label` (or `title`) and `icon` (an icon name such as truck, star, tag, or an `image` file) | Tags above the title | | `custom.compare_with` | List of product references | Product page compare | | `custom.style_with` | List of product references | Style with, complete the kit | | `custom.size_chart` | Multi-line text (see the size chart format) | Size guide | | `custom.fabric_facts` | Multi-line text, one `Label: value` per line | Fabric facts | | `custom.care` | Single line text | Fabric facts | | `custom.designed_for` | Multi-line text | Product details: the lead sentence under "Designed for" (replaces the section's lead) | | `custom.features` | Multi-line text | Product details: the feature list, one per line as `icon \| Title \| Text` (icon optional; check, phone, ruler, repair, eye, star, truck, gift). Replaces the section's feature blocks | | `custom.story_image` | File (image) | Product details: a lifestyle photo beside "Designed for" | | `custom.story_video` | File (video) | Product details: a muted, looping video in front of the fabric image. One file can serve a whole product group: set it on each product, or leave it empty and use the section's video on that group's template | | `custom.fabric_image` | File (image) | Product details (layered layout): the fabric close-up behind the photo or video | | `custom.model_info` | Single line text | Caption on the first product image, the Size & fit row and the Model size block, when the product has no model metaobject | | `custom.short_description` | Rich text or multi-line text | Description block set to **Short description**: a shorter text for the buy box, the full description stays for search engines and other places | | `custom.fit_scale` | Integer (-2 to 2) | Fit scale block: -2 runs small, 0 true to size, 2 runs large | | `custom.extra_media` | List of files (images, videos) | See it in action block: extra photos and videos, in their order | | `custom.spin_images` | List of files (images) | 360° view block: the frames in turning order | | `custom.video_reviews` | List of `video_review` metaobjects | Voices section set to **The product's video reviews**: customer videos per product | | `custom.model` | `model` metaobject | The model in the photos: caption, Size & fit row and Model size block (name, height, size worn, measurements, photo) | | `custom.specs` | Multi-line text, one `Label: value` per line | Product details: the spec list (replaces the section's specs) | | `custom.feature_strip` | Single line text, keywords separated by commas (e.g. "pocket, reflective") | Feature strip: which items show for this product. Without it, the strip looks for the keywords in `custom.features` and the description | | `custom.look_image` | File (image) | Style with: the styled photo beside the kit. Without it, the product's third image | | `custom.faq` | Multi-line text, one `Question \| Answer` per line | FAQ section on product pages: this product's own questions | | `custom.size_guide_page` | Page | Size guide: this product's own guide page (replaces the Variant picker's page) | | `custom.breadcrumb_collection` | Collection | Breadcrumb on the product page when the shopper did not come from a collection (search, home page, a shared link) | | `custom.temp_note` | Single line text | Performance profile: the line under the temperature range (replaces the section's note) | | `custom.preorder_note` | Single line text | Buy box and cart: the pre-order message (replaces the block's note) | | `custom.external_url` | URL | Buy buttons and quick view: a button to buy the product on another site instead of Add to bag | | `custom.external_label` | Single line text | The label of that button (else the block's label, else Buy at partner store) | | `custom.countdown_end` | Date and time | Countdown blocks (Product information, quick view and the shared Countdown block) set to **The product's date**: the product's own end, such as the last day of a launch price | | `custom.pairing_note` | Single line text | Cart drawer: why a suggested product goes with the cart | Video review metaobject (`video_review`): title (the customer's name), meta (single line text, e.g. a city or the size bought), quote (multi-line text), rating (rating), image and video (files), avatar (file) and product (product reference). Voices plays the video muted on its card; add a True or false field video_sound, on for a clip with sound behind a play button. Model metaobject (`model`): name, height (for example 185 cm (6'1")), size (the size worn), chest, waist, hips and weight (single line text each) and image (file). Define each model once under **Settings → Metafields and metaobjects → Metaobjects**, then pick it on every product they wear: the caption reads *Sam is 185 cm (6'1") and wears M*. Pocket map metaobject (`pocket`): name (single line text), side (front or back), x and y (integer, percent of the photo), size, holds (single line text), image (file). `custom.pocket_front_media` / `custom.pocket_back_media` (integer) pick the photos. Size chart format: one row per line, comma separated, measurements in cm. Ranges like `60-64` drive the Find my size calculator. ``` Size, Waist, Hip, Inseam XS, 60-64, 86-90, 64 S, 65-69, 91-95, 64 ``` Collections can set `custom.intro` (multi-line text): a short line under the collection title in the banner. A collection can also set `custom.banner_mobile` (file: image): its own photo for phones and tablets in the Collection banner, for example a taller crop. Without it, phones use the collection image. The full collection description shows in the **Collection description** section further down, so keep the intro to one or two sentences. A collection can also list its own sub collections in `custom.sub_collections` (list of collections). The Collection banner then shows those, as pills, a row of round photos or cards, instead of the section's **Links**, so Women can lead to Leggings and Bras while Men leads to Shorts and Tees from one template. Blog articles can set `custom.author_role` (single line text) to show a role under the author's name. To filter by support level on collection pages, enable the metafield as a filter in the Search and Discovery app.