Appearance
Use metafields and dynamic sources 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 this guide when information such as care instructions, materials, dimensions, or delivery details should differ between products without creating a separate template for each product. The normal order is define the Shopify field → enter values on the relevant products/variants → connect a compatible Guild setting. Guild reads the data; it does not create or populate metafields.
1. Create a definition in Shopify Admin
- Go to Settings > Custom data / Metafields and metaobjects in Shopify Admin (the exact navigation label can change), or open a product's metafield area and add a definition.
- Select Products for product-wide content, or Variants for a value that differs by selected variant.
- Choose an appropriate standard definition where one exists; otherwise create a custom one. Record its Namespace and key and select a value type compatible with the Guild block/setting you plan to use.
- Save the definition. A definition by itself is not visible content.
For Shopify's current interface and supported types, see Create metafield definitions and Display metafields in your theme.
2. Enter values on actual products or variants
Open Products in Shopify Admin, choose the product, and fill the relevant metafield value. Save it. Repeat for products needing different text. For variant-specific content, set the value on the individual variants instead. Test at least one product with a value and one without it.
A blank value will not be generated by Guild. Shopify controls which compatible dynamic sources are available in the editor for the previewed resource.
3. Connect the content in Guild
- Open the Guild theme editor and preview a product that already has the metafield value.
- In the Product template, open the section and block that should display the information.
- For a setting that supports dynamic sources, use Shopify's Connect dynamic source icon beside that setting and choose the compatible metafield. The icon is not present on every setting.
- Alternatively, use Guild's Product metafields block and the corresponding configured metafield fields if you need a label/value presentation; for Product-specific conditional items, configure the metafield namespace/key under Show content when.
- Save and check a different product using the same template. Its own value should appear, rather than a hard-coded copy from the first product.
Do not enter a single product's care instructions as static theme-setting text when the same template serves products needing different instructions. The Product page setup guide explains where Product blocks live. For Shopify's connection UI, see Shopify's dynamic-source instructions.
Example: show care instructions only when available
- Define and populate a suitable product metafield for care information.
- Add a Product-specific accordion item or tab in the Product block tree and provide a clear heading, such as Care instructions.
- Connect the content setting to the compatible dynamic source where supported; for Product Accordion/Tabs items, Advanced > Use conditional visibility can use Product metafield has a value with that metafield's namespace and key.
- Test a product with content and one without it. Conditional Product-specific items and their empty parent shell are suppressed when their configured condition is not met.
Use the Sections catalog for the full conditional-visibility behavior rather than duplicating its setting reference here.
Product-to-product design connections
For an editorial link between two products, use the Design in relation guide to create design_connection metaobjects and the custom.design_connections product list metafield. Display the individual connection captions and labels via the native Product metafields > Product metafield block with Source: Design connection. The theme does not populate these texts or build relations automatically.
Object anatomy: a dedicated detail image on product cards
For editable Product list cards, Object anatomy reads a single image file reference from custom.texture_image on each product. Define that field under Shopify Product metafields, upload a suitable close-up for each product, and enable Object anatomy inside the card's Product media block. The field is fixed rather than a configurable dynamic-source connection; an empty or invalid value leaves the normal product image unchanged. This feature is separate from Product dimensions and from the Product page gallery.
Product dimensions: a dedicated typed-data block
To draw proportion-aware width, height, and depth diagrams, use Product dimensions, not an ordinary text dynamic source. Create product metafields custom.width, custom.height, and custom.depth as Shopify Dimension fields. For products with multiple variants, the optional block requires custom.dimensions_apply_to_all_variants as a True or false Product field set to true only when every variant shares the same measurements. The existing text field custom.dimensions is not parsed into those numeric fields. The linked setup guide covers 1D/2D/3D behavior, display settings and empty states.
Structured product information
Display a list of product facts
Inside Product metafields, add a Product metafield item and select a Product or Variant metafield source. For a list.single_line_text_field, list.number_integer, or list.number_decimal metafield, choose Display mode > Bullets to render an ordered list of values. Inline remains the default and displays the same supported list values separated by commas. Other complex/reference lists are not rendered through this option; use a suitable dedicated block or page instead. The selected variant determines variant-sourced values.
Set up Product - Nutrition
- In Content > Metaobjects in Shopify Admin, create a definition with the exact type
guild_nutrition_panel_v1, available to the storefront. Give it thereference_unitfield of type Single line text, whose value must begorml. - Add the following Decimal fields:
energy_kj_per_100,energy_kcal_per_100,fat_per_100,saturates_per_100,carbohydrate_per_100,sugars_per_100,protein_per_100, andsalt_per_100. Each is required for a table to appear. Numbers must be nonnegative; enter numerical values without a unit suffix. - Optionally add
fibre_per_100as a Decimal field. For a per-portion column, addportion_labelas Single line text, plus the eight corresponding decimal fields ending in_per_portion(for exampleenergy_kj_per_portion). If Fibre is displayed,fibre_per_portionmust also have a value. An incomplete portion set hides only the portion column. - Under Settings > Custom data > Products, create a Metaobject reference Product metafield (for example, namespace
custom, keynutrition_panel) restricted to the definition above. Populate the panel and assign it to the intended products. - Add Product - Nutrition in the Product block tree. Its Metafield namespace and Metafield key must match the Product reference. A missing or invalid panel renders no table. Nutrition is product-level, not variant-specific, and Guild does not calculate energy, validate claims, or certify regulatory compliance.
Under Appearance, Heading typography, weight, size and uppercase affect only column headings in thead th. Value size affects the body cells, including nutrient row headings in tbody th and numerical values in tbody td. Alignment controls table cells and Item spacing controls cell padding. These options do not change the underlying nutrient values.
Use accurate merchant-supplied nutrition values and check the presentation for each market where you sell. For development and demonstration, use clearly marked synthetic products in an unpublished theme, never fabricated values on live product pages.
Set up Product - Size guide
- Create a Shopify Page with your actual size or measurement information, including clear units and table headings. You can reuse one Page for several products.
- Add Product - Size guide to the Product block tree and choose the Page. The Page body appears inline at the block's location, without an additional button, dialog or feature-specific JavaScript. If you want it inside a dialog, place the block in a separately configured Popup that supports Product content.
- If products need different guides, optionally create a Page reference Product metafield (for example
custom.size_guide) and assign a Page per product. Enter its namespace and key in the block. A valid product-specific Page takes precedence over the shared Page; otherwise the shared Page is used. - Under Appearance, configure the table controls just as for Product - Nutrition: Alignment, Item spacing, Heading typography/weight/size/uppercase, Value size and Margin. Heading styles target
thead th; Value styles targettbody thandtbody td. Surrounding Page text and images are not reformatted by these table options. The block does not offer Content maximum width. - Test the result on at least two products, including one without a guide, plus mobile and keyboard navigation. Without a valid product-specific or shared Page, Guild omits the guide on the storefront; the Theme Editor can show a clearly marked example table for styling.
The theme reads Pages and custom data; it does not create or translate merchant-authored tables or infer units or size conversions.
Example: update delivery copy for the selected variant
- Define and populate a variant metafield for delivery messaging. Prepare a product-level fallback if desired.
- Open Product shipping, expand Show advanced options, and enable Update by variant.
- Enter the variant Metafield namespace and Metafield key that match your Shopify definition. The initial variant key is
custom.delivery_estimate; the initial product fallback iscustom.shipping_and_delivery. - Test variants with and without values. Guild prefers the selected-variant message and falls back to the configured product metafield; it does not calculate delivery dates from inventory.
See Product shipping troubleshooting for diagnosis.
If the source does not appear or the content is blank
Check in this order:
- The definition is on the correct resource type (product vs variant), and its value type is compatible with that particular Guild setting.
- The product/variant being previewed actually has a saved value.
- The correct namespace/key is configured for blocks that request one; a similar label does not guarantee a matching key.
- The dynamic source is connected to the intended setting; not every setting supports the connection icon.
- Any Show content when, responsive Display mode, and parent Product wrapper conditions permit output.
- An app or custom script has not replaced the block content.
For systematic source/preview checks, see Why content is missing. If Shopify does not offer a source in its editor, check the current Shopify metafield documentation before attempting custom code.
Next: Review the Product page and Troubleshooting. You can contact Guild support without modifying theme code.