Skip to content

Custom Liquid ​

This guide describes setting up the Custom Liquid section.

Use the section to add Liquid code, such as app snippets, to create advanced customizations for your store. Refer to Shopify developers: Liquid reference. We recommend hiring an expert if you're not comfortable editing Liquid code.

​An example Custom Liquid section on a store's home page.

​The previous image shows a Custom Liquid section on a store's home page. In the upper right, part of Theme editor's section menu is displayed. The menu's Custom liquid box contains Liquid template language code. The Liquid code is rendered as a paragraph of text on the store's home page.

For general guidance with modifying sections, refer to Sections overview and Shopify help: Sections and blocks.

Set up a Custom Liquid section ​

To set up a Custom Liquid section:

  1. In Theme editor, at the top of the page, use the theme templates dropdown menu to select a page that contains a Custom Liquid section.

    Note

    The section can be added to any page, except Checkout and Gift card pages. To add the section to the current page, select Add section > Custom Liquid. Refer to Shopify help: Add a section.

  2. From the side menu, select Custom Liquid.

  3. Select a setting described in the following table.

Setting nameDescription
SubheadingIn the Subheading field, enter text to display as a subheading for the section. Note that the Subheading field is hidden in Theme editor when the Heading field is empty.
HeadingIn the Heading field, enter text to display as a heading for the section.
TextIn the Text field, enter body text to display inside the section. Use the inline editor to format the text and add links, as needed.
Custom LiquidIn the Custom Liquid box, enter Liquid template language code. Refer to Learning Liquid: A guide to Shopify theme development.
Color > Color schemeUse the Color scheme picker to select a color scheme for the section. Refer to Colors.
Theme settingsIf available, select Theme settings to access additional settings for the section. Refer to Section theme settings menu.
Custom CSSSelect Custom CSS. In the CSS field, enter custom CSS styles to apply only to the current section. Refer to Shopify help: Add custom CSS. To apply custom styles to your entire online store, refer to Theme settings > Custom CSS.
Remove sectionSelect Remove section to delete the section from the current page.

Note

To connect a metafield to a setting that supports metafields, select the Connect dynamic source icon displayed beside the setting in Theme editor.

To learn how to connect a metafield to a supported setting, refer to Shopify help: Connecting metafields to your theme by using the theme editor.