Strata

Custom liquid

Render a small merchant-authored Liquid or HTML fragment inside a controlled section.

Custom liquid is an escape hatch for content that Strata's standard sections do not provide. Use it only when the requirement is understood and maintained by someone comfortable with Shopify Liquid and storefront markup.

A centered line of text reading Complimentary shipping on orders over $500.00, where the amount is formatted by Liquid.

A Custom liquid example: one line of HTML with a Liquid money filter.

Add Custom liquid

In Shopify's Theme Editor, add Custom liquid to a compatible page template or open an existing section. It is not an Overlay-group feature.

Content

Custom liquid Content settings in the Theme Editor: Custom liquid.

The Content group in the Theme Editor. The values shown are examples, not defaults.

SettingWhat it controlsDefault
Custom liquidLiquid and markup authored for this section.No default.

On the storefront, an empty field produces no section content or spacing. The Theme Editor keeps the section visible and shows Add Liquid code to display content so you can find and configure it. Adding content restores the normal section output. Keep the snippet focused on the merchant outcome and prefer a dedicated Strata section when it already provides the required control.

Layout

Custom liquid Layout settings in the Theme Editor: Content width.

The Layout group in the Theme Editor.

SettingWhat it controlsOptions or default
Content widthSets the width of the authored content container.Narrow, Page width, or Full width. Default: Page width.

Full width changes the content container treatment; it does not make arbitrary child markup responsive. The snippet remains responsible for its own internal layout.

Colors

Custom liquid Colors settings in the Theme Editor: Background color, Text color.

The Colors group in the Theme Editor.

SettingWhat it controlsDefault
Background colorThe section surface behind the authored output.Leave blank to inherit Theme settings > Colors > General; selecting a color in this section overrides the inherited value.
Text colorThe default text color for the authored output.Leave blank to inherit Theme settings > Colors > General; selecting a color in this section overrides the inherited value.

Authored Liquid or HTML can introduce its own colors; check the rendered output against the selected section colors.

Spacing

Custom liquid Spacing settings in the Theme Editor: Section spacing, Top spacing, Bottom spacing.

The Spacing group in the Theme Editor.

SettingWhat it controlsOptions or default
Section spacingChooses the section's spacing scale.Small, Medium, or Large. Default: Medium.
Top spacingAdds or removes the section's top spacing.Enabled by default.
Bottom spacingAdds or removes the section's bottom spacing.Enabled by default.

Responsive and accessibility review

Strata does not automatically turn arbitrary Liquid/HTML into a responsive, accessible component. Before publishing, review:

  • a real desktop and mobile viewport with the longest expected text;
  • headings, landmarks, labels, keyboard focus, link purpose, and color contrast;
  • images, embedded media, and any interactive controls;
  • loading, consent, privacy, and performance implications of external resources.

Do not place passwords, private tokens, customer data, hard-coded preview URLs, or third-party credentials in the field. Treat pasted scripts and external embeds as code that needs its own review.

Common issues

SymptomSafe check
The content is too narrow or wideChoose the matching Content width, then inspect the snippet's own layout rules.
Mobile content overflowsTest the snippet's children and media; the section cannot correct arbitrary fixed widths.
A control cannot be reachedInspect the authored markup's labels, focus order, and keyboard behavior.
An embed is blankCheck its provider, consent requirements, allowed URL, and whether the current preview permits it.
The section appears empty in the Theme EditorAdd content in Custom liquid. The editor prompt is not shown on the storefront.
The section is absent from the storefrontAn empty Custom liquid field intentionally produces no storefront section; if the field contains code, confirm its conditions have data to render.

Search documentation

Search across the Strata guide