Skip to content
AI Shopify AI Store
Guide 2026-11-26

Shopify Liquid Block and Partial Tags Guide

Shopify added two Liquid tags in July 2026 that let a template compose its own page and let JavaScript refresh a named region without a reload. Here is the exact syntax, the real limitations, and what merchants should do.

Shopify Liquid Block and Partial Tags Guide

What Shopify Actually Changed

On 21 July 2026 Shopify opened a developer preview called Liquid July '26 and added exactly two tags to Liquid. The changelog is blunt about what they do: {% block %} “renders a reusable theme block directly from a template,” and {% partial %} “defines a named region of server-rendered HTML that JavaScript can refresh without reloading the full page.” That is the entire feature list. Everything else — typed contracts, new linter rules, a theme with no sections folder — follows from those two sentences.

Why that matters depends on what it replaces. Since Online Store 2.0 a Shopify page has been assembled from declarative data: a JSON template lists sections in order, each section is a Liquid file, sections contain blocks, snippets hold repeated markup. The shape of a page lives in one file while the code that renders it lives in twenty others. To answer “what is on this product page?” you open templates/product.json, then settings_data.json, then every section, and rebuild the page in your head.

Shopify's Fall '26 materials for developers make the intent explicit: “Page structure now lives in the Liquid template itself instead of a separate JSON file.” The same announcement bundles “blocks, typed contracts, partial updates, markdown files that guide agents, and Tailwind styling built in,” and says themes built this way can be edited with Sidekick inside Canvas, now in early access. The rationale is not nostalgia for vintage themes: a template you can read top to bottom is a template a coding agent can edit reliably — the same argument Shopify makes for machine-readable catalogs in agentic commerce.

Two things this is not. It is not a migration: sections, theme settings, and JSON templates remain supported, and nothing is deprecated. It is not generally available either. As of late November 2026 the tags sit behind a development-store preview with no published GA date, and Shopify warns that “tag behavior and JavaScript helpers can change before general availability.” The developer-preview docs page now redirects to the general theme architecture guide while the tag references stay live — a fair sign of how fast this moves. Surrounding context:

Date (2026)ChangeEffect on a theme codebase
13 JanStricter Liquid parsingNon-compliant files auto-rewritten; new Theme Store and App Store submissions need strict-parsable Liquid
20 AprCSS subsetting for {% stylesheet %}A page receives only CSS from files in its render tree
17 JulTheme Check 3.28.0Block-argument, schema, and complexity checks
21 JulLiquid July '26 preview{% block %} and {% partial %}; skeleton theme release candidate
28 OctFall '26 Edition developersLiquid-first architecture, agent markdown files, Tailwind, Canvas early access
6 NovTheme Check 4.0.0Liquid inside HTML comments is parsed, so old files can start reporting

The Block Tag, Line by Line

The syntax is one line: {% block 'name', parameter: value %} content {% endblock %}. The name maps to a file, so {% block 'container' %} renders blocks/container.liquid. If you have used {% render 'product-card' %} the transfer is immediate: the reference says it works the same way as render, except it looks in blocks/.

Three input channels exist at once, and confusing them is the main source of errors:

  • Named parameters arrive as ordinary variables. {% block 'container', tag: 'header', class: 'site-header' %} gives the block a tag and a class. Nothing about class is special, so styling stays visible in the Liquid that emits the HTML.
  • Schema settings are read as block.settings.<id> and normally set by a merchant. When a parameter name matches a setting declared in the block's {% schema %}, the parameter also sets that setting; a parameter with no matching setting stays a plain variable and never touches block.settings.
  • Body content is everything between the tags. Shopify's advice is specific: if the value is markup or text, pass it as body content rather than inventing title or heading parameters.
{% comment %} templates/product.liquid {% endcomment %}
{% block 'container', tag: 'section', class: 'product-hero' %}
  <h1>{{ product.title }}</h1>
  {% block 'button', variant: 'button-primary', type: 'submit' %}
    Add to cart
  {% endblock %}
{% endblock %}

{% comment %} blocks/container.liquid (condensed) {% endcomment %}
{% assign tag = tag | default: 'div' %}

<{{ tag }} class="{{ class }}" {{ block.shopify_attributes }}>
  {{ content }}
</{{ tag }}>

{% schema %}
{ "name": "Container", "settings": [] }
{% endschema %}

Two details in that snippet deserve attention. Inline literal arrays are unique to the block tag: you can write {% block 'badge-list', badges: ['New arrival', 'Low stock'] %} in the template, and Shopify documents that {% render %} and {% partial %} reject an inline array. That asymmetry keeps a template readable instead of littered with {% assign %} setup.

The second is an inconsistency to know before trusting any write-up, including this one. The API reference says a block prints caller content with {{ content }}. Shopify's own skeleton theme says {{ block.content }}, in both its AGENTS.md and its container.liquid. Both forms are official today. Pick one per theme, verify it renders, and expect the answer to move before GA. Either way keep {{ block.shopify_attributes }} on the root element: it is what lets the theme editor identify the block.

Scope is narrow by design: the tag is documented for layout/ and templates/ files only. Enforcement of the interfaces below lives in the linter, not the runtime.

Block, Render, or Section: Choosing the Primitive

Liquid has several ways to reuse UI, and the differences are about who can see and change the component, not about rendering. The blocks documentation states a limitation of theme blocks that is easy to miss: they “cannot receive variables from parent code.” Snippets could take variables but stay invisible to merchants. Sections could be rearranged but are heavyweight. The block tag is interesting precisely because it collapses that trade-off — the component keeps its schema settings and editor presence while now accepting arguments from the calling file.

MechanismLives inMerchant-visibleCaller argumentsWhere callable
Snippet + {% render %}snippets/NoYesAnywhere
Section via JSON templatesections/, listed in templates/*.jsonAdd, remove, reorderNoTemplates, section groups
Theme block, dynamicblocks/ via {% content_for 'blocks' %}Drag, duplicateNoInside a parent section or block
Theme block, staticblocks/ via {% content_for 'block' %}Hideable, not movableNoInside a parent section or block
New {% block %} tagblocks/ called from a templateSchema settingsYes, plus body content and inline arrayslayout/, templates/
App blockTheme app extensionWhere schema allows @appApp-controlledSections, theme blocks

Three constraints apply regardless of preview status. A theme holds at most 300 theme blocks, and every file in blocks/ counts, including unreferenced ones and blocks Sidekick generated. Section blocks still support one level of hierarchy and cannot be mixed with theme blocks in the same section. And app blocks are documented against sections and theme blocks accepting @app; no official page says a theme app extension block can be called with {% block %} — for a store whose drawer, reviews, or upsells come from apps, that silence is the real pilot risk, not the syntax.

So: snippets for internal utilities, sections and JSON templates for pages merchants rearrange themselves, and the block tag for components whose composition you want owned in code — which is most of the markup in a store where the theme is a product rather than a starting point, the situation most Plus and Advanced merchants end up in.

The Partial Tag and Partial Rendering

{% partial %} answers a different question. Wrap server-rendered markup in {% partial 'name' %} ... {% endpartial %} and the region gains a name JavaScript can target. On first load nothing special happens; on a later interaction the browser asks Shopify to re-render just that region and swaps it into the DOM — no full reload, no client-side rendering framework.

{% comment %} templates/collection.liquid {% endcomment %}
{% block 'container', class: 'collection' %}
  <h1>{{ collection.title }}</h1>

  {% partial 'product-grid' %}
    {% for product in collection.products %}
      {% render 'product-card', product: product %}
    {% endfor %}
  {% endpartial %}

  {% partial 'product-count' %}
    <p>{{ collection.products_count }} products</p>
  {% endpartial %}
{% endblock %}

The client comes from @shopify/partial-rendering, documented in the partials architecture guide with five helpers. fetch() requests fresh HTML for one or more named partials and apply() swaps them in, leaving URL, method, and body under your control. refresh() is the shortcut for “re-render against the current URL,” which is what popstate and a sort change want; call it with no arguments to refresh every partial, or pass an element to scope it. get() and getAll() return partials already on the page, each paired with a DOM Range, so you can measure a region without refetching.

import { partials } from '@shopify/partial-rendering';

const url = new URL(window.location.href);
url.searchParams.set('sort_by', 'price-ascending');

const update = await partials.fetch(
  'product-grid',
  'product-count',
  { url: url.toString() }
);

if (document.startViewTransition) {
  document.startViewTransition(() => partials.apply(update));
} else {
  partials.apply(update);
}

The production details are in the accessibility guidance. apply() preserves focus, text selection, form values, and scroll position — the part every theme used to get wrong — but does not reconcile server-owned values, so if the server changed a control after validation you update it yourself. Build request URLs from the current URL or the routes object, or refreshes break across Markets, and set aria-busy with a live-region announcement for meaningful results.

Against the Section Rendering API, which has covered similar ground since 2021, the difference is granularity: a section re-render returns the whole section plus scoped styles, a partial only the named region. Testing measured roughly 4.1 KB in a <template> element against 18.5 KB for the equivalent section. On 26 October 2026 a theme team reported in the developer community that section_id cannot be combined with a partial request (HTTP 400); Shopify staff confirmed it on 29 October as a current limitation with no timeline, and repeated the same for the Cart AJAX and Predictive Search APIs on 4 November.

One gating note saves an hour of debugging: per the skeleton theme, {% partial %} renders only when shop.features.agentic_editor_enabled? is on and the page is served by the Storefront Renderer. Elsewhere the storefront raises Unknown tag 'partial', so a template that works in a preview store can fail on a live theme with an error that looks like a typo. The model follows the browser-standard Declarative Partial Updates proposal, which is why it reads as a web primitive rather than a Shopify invention.

Typed Contracts and New Theme Check Rules

“Typed contracts” is Shopify's phrase in the Fall '26 developer materials, and it is tooling rather than a language feature: the runtime never type-checks a block call. What changed is that the linter now understands the interface well enough to fail a build. That interface is declared with {% doc %}, a JSDoc-inspired header supported on snippets and blocks. It validates nothing itself — it tells the tooling what to expect, powering hover documentation, code completion, and Theme Check:

{% doc %}
  Product card block.

  @param {object} product - The product to render
  @param {string} [badge] - Optional promotional label
  @param {number} [max_lines] - Optional description clamp

  @example
  {% block 'product-card', product: product, badge: 'New' %}
{% enddoc %}

Theme Check 3.28.0, released 17 July 2026, supplies the enforcement. It adopted a hand-written Liquid HTML parser and shipped the checks that turn {% doc %} and schema declarations into contracts:

CheckReports
ValidBlockArgumentTypesAn argument whose type mismatches its {% doc %} declaration
MissingBlockArgumentsA required {% doc %} argument omitted at the call site
UnrecognizedBlockArgumentsAn argument the block never declares
UnknownBlockSettingA block.settings.<name> read for an undeclared setting
BlockArgumentSettingCollisionA plain argument whose name collides with a setting id
DuplicateBlockArgumentsThe same argument passed twice
LiquidComplexityCyclomatic complexity above the threshold (default 120)
LiquidNestingDepthControl flow nested past the limit (default 10)
ExcessiveSettingsCountA schema above the setting count (default 40)

Run it with shopify theme check. The linter has kept moving: 4.0.0 (6 November 2026) changed how Liquid inside HTML comments is parsed, and 4.0.2 is current as of 16 November.

Line the 2026 changes up and the direction is clear. Strict parsing since 13 January means Shopify rewrites Liquid it dislikes and refuses non-compliant submissions. CSS subsetting since 20 April means styles must be owned by the file rendering the markup, with ValidScopedCSSClass flagging cross-file dependencies. Typed contracts mean component inputs are declared rather than inferred. Separately these are chores; together they are the precondition for letting an AI agent edit a storefront safely — the premise behind our Sidekick operations guide.

The Skeleton Theme With No Sections Folder

The clearest statement of where this is going is the reference implementation Shopify published with the preview. The skeleton theme at rc-v2.0.0 calls itself “a minimal Shopify theme built on block-first composition” where “templates compose each page directly from blocks, snippets, and inline markup — no sections, no JSON templates”, and it is explicitly “designed to be edited by coding agents as readily as by people.”

On that branch the theme is around fifty tracked files with no sections/ directory at all. Twelve page types are plain Liquid templates (index, product, collection, cart, blog, search, 404, gift_card and four more), and the whole component library is five files in blocks/: container, header, footer, hello-world, liquid-tips. Composition flows one way:

layout/theme.liquid  → {% block 'container' %} (header)
                     → <main>{{ content_for_layout }}</main>
                     → {% block 'container' %} (footer)

templates/*.liquid   → {% block 'container' %} → blocks / snippets / inline HTML

templates/index.liquid is two lines: a container wrapping hello-world. Each template is the composition root and holds as many containers as it has vertical slices.

The rules in AGENTS.md are the part to study, because they are a written dialect for a machine editor: no {% section %} tags, no JSON templates, no schema presets; no {% stylesheet %} or {% javascript %}, with all CSS and JS in assets/; every block opens with a typed {% doc %} header and keeps block.shopify_attributes on its root element; whitespace is required between an HTML tag name and a following Liquid delimiter; every customer-facing string uses a literal {{ 'key' | t }}; every storefront path comes from routes.*; and .theme-check.yml stays extends: theme-check:recommended with zero overrides, because you fix the Liquid instead of adding exceptions.

Shopify shipped a theme whose main contributor documentation is an agent guide. Fall '26 calls the same idea “markdown files that guide agents,” pairing with store-level guidance such as the files behind our Shopify AI feature map. If you commission themes, that file is now a deliverable: its quality decides how well a merchant's own AI tools can work inside your code. One caution from reading the branch directly — AGENTS.md lists a text block as current while the tree at the same commit has only the five files above. In a moving release candidate, treat code as fact and prose as intent.

Limitations and Unknowns in November 2026

What remains unresolved as of 26 November 2026:

  • No GA commitment. Nothing official states a general availability date, and preview behaviour changes.
  • Hard gating. Without the preview flag and the Storefront Renderer, {% partial %} is an Unknown tag error.
  • No mixed rendering. A partial request cannot be combined with section_id (HTTP 400), so today's section fetches cannot become partial fetches. The import map is also injected only when the initial render contains a partial, excluding AJAX quick views and drawers.
  • App blocks undocumented for this tag — the biggest gap for app-heavy storefronts.
  • Body content API conflict between {{ content }} and {{ block.content }} in official sources.
  • Unclear persistence for merchant edits. When a merchant changes a setting on a block that a .liquid template renders directly, developers have asked where that value is stored — the conventional home, templates/*.json, does not exist in that model. Treat it as open for any page non-developers must edit.
  • Editor visibility is lost on purpose. Sections are visible in the theme editor, so a merchant can see what a page is made of; a block called from a template exists only in code. That is the real trade-off.

There is also a governance risk that is not technical. A model that renders any block from any template invites a theme where one component is called from four templates with slightly different arguments and no file says which is canonical. The new checks catch argument drift inside a file, not architectural drift across a codebase, so whoever owns the theme has to write down where components live and which call sites are authoritative — the discipline we describe for generated content in our AI governance framework.

What Merchants Should Do, With a 30-Day Pilot

If you run a store and never touch Liquid: do nothing, and ask one question at your next theme vendor review. This will not break your storefront and there is no version to upgrade to. Ask whether your theme team is tracking the preview, because rebuild demand will cluster around GA and you do not want that migration colliding with BFCM. The changes that already affect you are the quiet ones: strict Liquid parsing and per-page CSS subsetting both touch live themes today.

If you maintain a custom theme: pilot on a development store for a quarter and change nothing on a live theme. The valuable exercise is not the syntax, it is counting what you would rewrite. Find every hand-rolled fragment update — fetch, parse, swap innerHTML, restore focus — and note the lines. Testing {% partial %} on a real theme shrank a pager and sort control from 537 lines to 27, and variant switching from 866 to 27, because display rules live once in Liquid instead of twice. That is the business case, and you can size it in an afternoon.

If you are weighing headless: this narrows the gap. Many Hydrogen migrations were driven by escaping theme-layer structure and performance limits, and Liquid-first templates, typed inputs, partial updates, and built-in Tailwind with per-page CSS address several of them directly. The choice is becoming a spectrum, not a binary.

A 30-day pilot that stays safe:

  1. Create a development store and select the Liquid July '26 changes under feature previews.
  2. Clone the skeleton theme at rc-v2.0.0 and read templates/product.liquid, blocks/container.liquid, and AGENTS.md end to end.
  3. Run shopify theme check on your own theme with Theme Check 4.x and record the baseline before changing anything.
  4. Inventory hand-rolled fragment updates and section_id fetches; count lines per pattern.
  5. Wrap one low-risk region on a non-critical page — a result count, not the buy button — in a named partial.
  6. Wire it with partials.refresh(), then test the four things that break: back and forward navigation, keyboard focus, form values, screen reader announcements.
  7. Extract one reusable component into blocks/ with a {% doc %} header, call it from two templates, and let ValidBlockArgumentTypes and MissingBlockArguments be the review gate.
  8. Decide in writing which pages stay JSON templates because merchants edit them, and which become Liquid composition roots.
  9. Keep preview code on a separate theme copy, never a published theme, and re-run Theme Check before each hand-off.
  10. Track the changelog and community threads for the two unblockers that matter most: section_id plus partials, and AJAX-injected import maps.

A year from now the interesting part probably will not be the tags. It will be that Shopify made its storefront legible to machines at the same moment it began routing buyers through them — the same logic behind enabling a personal agent for every merchant and the Fall '26 Edition developer announcements. To try any of this without touching a live theme, start a Shopify free trial with a development store and follow the rollout order in our 90-day plan.

FAQ

Do I have to rewrite my theme for the block and partial tags?

No. Shopify describes the preview as an alternative composition model alongside sections, theme settings, and JSON templates, and states existing themes keep working. Nothing is deprecated, so if your theme renders correctly today this creates no work.

What is the difference between a block and a snippet?

Both are called from code and accept named parameters. A block also carries a {% schema %}, so it can expose merchant-editable settings, keeps block.shopify_attributes for editor targeting, and is the only tag accepting inline arrays. Snippets stay invisible to merchants, which is still right for internal utilities.

Can I use these tags on a production storefront today?

Not reliably. They sit behind the Liquid July '26 development-store preview, and {% partial %} additionally needs the agentic editor feature flag and the Storefront Renderer; outside that combination the storefront raises Unknown tag 'partial'. Shopify also warns that tag behaviour and JavaScript helpers can change before general availability.

Should I replace the Section Rendering API with partials?

Not yet. A partial is a finer-grained primitive with a much smaller payload, but a partial request cannot currently be combined with section_id (HTTP 400) and the client runtime is injected only on pages whose initial render contains a partial. Shopify staff confirmed both in late October 2026 with no timeline.

Does a more AI-readable theme improve SEO or AI visibility?

Indirectly. A linear Liquid template is easier for an agent to read and edit correctly, which helps AI-assisted maintenance. It does not change what shopping agents return: selection in AI surfaces is driven by catalog data, feeds, and protocols such as UCP, which is why the product data guide matters more for visibility than this one.

Ready to build with Shopify + AI?

Start a free trial and apply this guide step by step.

Continue Reading