Skip to content

Custom Liquid

How to add your own Liquid or HTML to your theme with the Custom Liquid section and block.

Updated

Custom Liquid lets you paste code into a page from the theme editor, without touching theme files. Use it for an app snippet, an embed code or a small piece of markup. Our themes have it as a section and as a block.

Add it

  1. In the editor, click Add section and pick Custom Liquid. Or, inside a section that accepts blocks, click Add block and pick Custom Liquid.
  2. Paste your code in Liquid code.
  3. Set Space above and below and Color scheme on the section. Preview, then save.

What it does

The section prints your code with the spacing and color scheme you pick. The block prints it where you place it. Your code can use Liquid objects and tags, plus plain HTML.

Keep it safe

  • Preview on a phone width before publishing.
  • Only paste code you trust or wrote. It runs on your storefront.
  • Keep a copy of your code outside the editor.
  • Code in Custom Liquid is stored with the page's settings, not in theme files, so it is easier to keep when you update your theme.

Still stuck? Get theme support