Project portfolio Browse selected work

Shopify Plus Upgrade Monthly Fee Reduction + Up to $4800 Development Fee Credit - Exclusive WesWoo Offer

Shopify 3.0 theme development guide

Build a product specifications group with Shopify theme blocks. Trace a product template to its Liquid files, connect per-product data and decide whether to extend your current theme or migrate to Horizon.

Choose Horizon, Dawn or a targeted change

Shopify calls the reusable, nestable components theme blocks. The Winter ’25 Edition announced their availability in 2024. The Horizon theme family launched in May 2025 and uses them to assemble pages. “Shopify 3.0” is a search term for this guide.

  1. Inspect the current theme

    Find the main section in a product template. Check whether it defines its own blocks or uses files from the blocks directory. Record what the merchant can add and move today.

  2. Compare the same editing task

    For a material note on an existing Dawn product page, try changing one section. If the merchant needs to compose the same text and media across templates, build two layouts in a Horizon draft and compare the work involved.

Set up a development store

Start with a complete theme and two test products. The specifications example supplies three files to install into that theme.

  1. Prepare two products

    Keep the live theme and work in a separate copy. Pick two products that share a template. Give one material and dimensions, and the other only material. The difference will expose shared text and missing values.

  2. Start the development theme

    Run the commands below from a complete local theme and supply a development store you can edit. The second command syncs your files to its development theme. Open the editor link from the CLI and select the product template you want to test.

shopify theme check --path .
shopify theme dev --store your-dev-store.myshopify.com

Trace a piece of content from template to page

Use a care note on a product page to trace where configuration lives and where HTML is produced.

  1. Locate the section instance

    Open the matching product JSON template. Read the instance type under sections and open the corresponding Liquid file in sections. The template’s order array determines the order of sections.

  2. Follow the theme block

    Find {% content_for 'blocks' %} in its parent, then match the child’s type to a file in blocks. Its schema defines the editable fields. Liquid reads the current instance’s values through block.settings.

  3. Check the section boundary

    A section can define local blocks or accept theme blocks. To keep a local-block product section intact, add a separate specifications section that accepts theme blocks. Both sections can live in the same JSON template.

templates/product.json
sections/product-highlights.liquid
  blocks/_spec-group.liquid
    blocks/_spec-item.liquid

Decide what merchants can move, add or nest

A product information card can have a fixed structure and still leave some content open to rearrangement. Decide which parts merchants should control before writing the parent schema.

  1. Allow rearrangeable children

    Render content_for 'blocks' inside a group that accepts child blocks. A general container can accept @theme. An FAQ container can explicitly accept _question, keeping individual questions out of generic @theme pickers.

  2. Fix a block’s position

    Use content_for 'block' with a type and a stable id. Merchants can edit or hide a static block, but cannot drag, duplicate or remove it. Check the hiding behavior separately if the content must always be visible.

  3. Supply a starting layout

    Give addable blocks a named preset. Seed the group preset with a heading and body. Add two groups, give each a different heading, save and reopen to check that both instances retain their settings.

Build a reusable product specifications group

A dining chair has a material and dimensions. A cushion has only a material. Both use the same product template. Switch between the samples to see which row disappears.

Specifications

Material
Ash wood
Dimensions
42 × 38 cm

The preview uses two sample records and the Liquid files below. In your store, Shopify resolves connected fields against the product being previewed.

Install the example in your development theme

Copy the three files into the matching paths in your theme. Add Product highlights to a product template. Under Specifications, find Material and Dimensions. Define two single-line product metafields and connect each row’s Value setting to its field. Give two products different values, save and switch the product preview.

Typing directly into Value gives every product using the template the same text. When a value is empty, the editor shows a prompt and the storefront omits that row.

Download the specifications example (ZIP)
sections/product-highlights.liquid
<section>
  {% if section.settings.heading != blank %}
    <h2>{{ section.settings.heading | escape }}</h2>
  {% endif %}
  {% content_for 'blocks' %}
</section>

{% schema %}
{
  "name": "Product highlights",
  "enabled_on": { "templates": ["product"] },
  "settings": [
    { "type": "text", "id": "heading", "label": "Heading", "default": "Product highlights" }
  ],
  "blocks": [{ "type": "_spec-group" }],
  "presets": [{
    "name": "Product highlights",
    "blocks": [{
      "type": "_spec-group",
      "blocks": [
        { "type": "_spec-item", "settings": { "label": "Material" } },
        { "type": "_spec-item", "settings": { "label": "Dimensions" } }
      ]
    }]
  }]
}
{% endschema %}
blocks/_spec-group.liquid
<div {{ block.shopify_attributes }}>
  {% if block.settings.heading != blank %}
    <h3>{{ block.settings.heading | escape }}</h3>
  {% endif %}
  <dl>
    {% content_for 'blocks' %}
  </dl>
</div>

{% schema %}
{
  "name": "Specification group",
  "tag": null,
  "settings": [
    { "type": "text", "id": "heading", "label": "Group heading", "default": "Specifications" }
  ],
  "blocks": [{ "type": "_spec-item" }],
  "presets": [{ "name": "Specification group" }]
}
{% endschema %}
blocks/_spec-item.liquid
<div {{ block.shopify_attributes }}>
  {% if block.settings.value != blank %}
    <dt>{{ block.settings.label | default: 'Specification' | escape }}</dt>
    <dd>{{ block.settings.value | escape }}</dd>
  {% elsif request.design_mode %}
    <dt>{{ block.settings.label | default: 'Specification' | escape }}</dt>
    <dd>Enter a value to display this specification.</dd>
  {% endif %}
</div>

{% schema %}
{
  "name": "Specification",
  "tag": null,
  "settings": [
    { "type": "text", "id": "label", "label": "Label" },
    { "type": "text", "id": "value", "label": "Value" }
  ],
  "presets": [{ "name": "Specification" }]
}
{% endschema %}

Show the care note for the current product

Catalog editors can maintain care instructions on the product record while theme editors choose where the note appears.

  1. Connect a compatible field

    Define a single-line product metafield named custom.care_note and enter different values for two test products. In the product template, connect a compatible text setting to this dynamic source.

  2. Verify the product context

    Preview both a product page and a card that features another product. Theme blocks can use the closest resource of the matching type. Confirm that each card shows its own product’s note, and hide the heading and wrapper when the value is blank.

  3. Keep translations with their owner

    Store fixed interface labels in storefront locale files and resolve them with the Liquid t filter. Use t: keys in schema locale files for editor labels. Translate each product’s material value with the product content.

Make room for a review app

Identify where reviews belong in a draft theme, then check which integration the app actually supplies.

  1. Place the app block

    If the app supplies a placeable block, declare @app in the intended parent’s blocks list and check the rendering path. A theme-block container can render its children with content_for 'blocks'. Add the app at that location in the editor and save.

  2. Check the previous integration

    See whether the previous theme loads reviews through an app embed or custom code. In the draft preview, check for duplicate widgets, switch products to verify the reviews belong to each item, and test a product with no reviews.

Keep interactive blocks working after editor updates

Use an expandable care note to test script initialization, keyboard behavior and styling across multiple instances.

  1. Handle section replacement

    The editor can replace a section without reloading the page. Initialize new elements on shopify:section:load and release listeners and timers on shopify:section:unload. Change a setting twice, then click once and check for a single response.

  2. Keep selection and focus visible

    Native details and summary elements suit a disclosure. Open it with the keyboard and inspect its focus indicator. When an editor selection targets a child inside a collapsed panel, reveal that panel.

  3. Scope styles and measure the cost

    Scope rules to the component class and test two instances on one page for interference. Compare image bytes, script requests and layout shifts before and after the change, paying particular attention to the main image above the fold.

Move product templates in stages

Start with one existing template that contains real merchant settings and keep the previous theme available for comparison.

  1. Capture a baseline

    Duplicate the current theme. Record its name, template suffix, assigned products and app placements, and capture mobile screenshots. Save the important configuration, including relevant values in config/settings_data.json and product-template instances.

  2. Map each setting

    For each old field, record the destination block type, setting ID and value. Move a description into the new text block and map color choices to the new theme’s schemes. Preserve copy, dynamic sources and translations, and review fields without a direct match.

  3. Expand one template at a time

    Rebuild the pilot template with its existing suffix in the unpublished theme and preview an assigned product. Have a regular editor change and save a heading. Inspect other products and templates to verify the scope of that edit.

Diagnose failures and publish with a rollback path

Check the theme editor, storefront preview and published storefront separately.

  1. Trace the symptom

    For a missing picker entry, inspect the preset, allowed parent types and private block name. For an empty block, check the parent’s render location, current product and field value. For an editor-only failure, check initialization after section replacement.

  2. Preview the buying journey

    Test available, sold-out and multi-variant products at phone and desktop widths. Switch variants, check price and availability, then add an available item to the cart and verify its variant and quantity. Check keyboard access, translations and reviews.

  3. Publish and retain a rollback path

    Record the current and candidate theme names. After publishing, repeat the critical product checks at public URLs. If prices or add-to-cart behavior regress, republish the previous theme from the library. Review any separate changes to catalog data, template assignments and app configuration.

Recognize the Liquid developer preview

Check which environment a tutorial targets when it places a block directly in a Liquid template. The downloadable example here uses JSON templates and content_for.

  1. When you see two newer tags

    The July 2026 Liquid developer preview introduces block for composing a Liquid template and partial for refreshing a named region of server-rendered HTML. Evaluate them in a development store with Liquid July ’26 changes enabled, including editor and app behavior.