Skip to content
Cameron Themes

Cardinal docs/Sections

Custom Liquid

A section, and a block, for app snippets, embeds and your own Liquid code.

Custom Liquid outputs whatever Liquid and HTML you paste into it. It is the place for an app's install snippet, an embed code from another service, or a small piece of Liquid — showing a metafield, say — that no setting covers.

It comes in two forms: a section, for a full-width band of your own code on any page, and a block, for code that belongs inside another section.

The section

Add Custom Liquid from the section list on any page. Your code sits inside the same shell as every other section — page width, color scheme and padding — so it lines up with the rest of the page without any styling of its own.

Custom LiquidLiquid

Add app snippets or other code to make advanced customizations.

—
Colors
Make section full widthToggle
Default: Off
Color schemeColor scheme
Default: scheme-1
Padding
Top paddingSlider · 0–160px
Default: 64px
Bottom paddingSlider · 0–160px
Default: 64px
Top padding (mobile)Slider · 0–160px
Default: 48px
Bottom padding (mobile)Slider · 0–160px
Default: 48px

The block

The Custom Liquid block can go wherever app blocks can: Banner, Image with text, Rich text, Collage scroll, slides in a Slideshow, the product page, Featured product, the footer, Custom section and Group blocks. It is not available inside Multicolumn columns or the FAQ section.

Custom LiquidLiquid

Add app snippets or other code to make advanced customizations.

—

On the product page, the code can read the product object, which makes the block a quick way to show a product metafield beside the buy buttons.

Before you paste

  • Prefer an app block when the app offers one. App blocks update with the app; a pasted snippet keeps the old code until you replace it.
  • Code from a third party runs on your storefront with full access to the page. Only paste code from sources you trust.
  • Styles in your snippet apply to the whole page, not just the block. Scope them with a class of your own, or use Shopify's Custom CSS panel — see Custom CSS.
  • Check the page on a phone. Embedded widgets often bring their own fixed widths.

Still stuck? Contact support and we will help.