Skip to content

Custom liquid

This guide describes setting up your store's Custom liquid section.

Use the section to add Liquid code, like 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.

The previous video shows a Custom liquid section in Theme editor with the following settings:

  • On the left, the section's settings menu is displayed.

  • The following Liquid code is entered into the Liquid textbox.

    liquid
    <p>Subscribe to our newsletter for a <strong>{{ `15 % discount !` | upcase }}</strong></p>
    <p>Subscribe to our newsletter for a <strong>{{ `15 % discount !` | upcase }}</strong></p>
  • On the right, the code is displayed on the store's homepage as the formatted text Subscribe to our newsletter for a 15 % DISCOUNT !

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. Go to Customize theme. At the top of the page, use the dropdown to select a template that contains a Custom liquid section.

    Note

    The custom liquid section can be added into any page, except Checkout and Giftcard pages. To add a custom liquid section into the current page, select Add section > Custom liquid. Refer to Shopify help: Add a section

  2. From the side menu, select Custom liquid.

    The custom liquid section menu in Theme editor

  3. Select a section setting described in the following table.

Section setting nameDescription
HeadingIn the Heading box, enter text to display as a title inside the section.
LiquidIn the Liquid box, enter Liquid template language code.
Learn about LiquidFollow the link to Learn about Liquid at: Shopify developers: Liquid reference
Full widthSelect the Full width checkbox to turn on/ off spacing between your custom liquid content and the section's edges. With this setting enabled, the full width of the section is used to display your custom liquid content.
Color > Color schemeUse the Color scheme dropdown to set the color scheme for the section to Primary, Secondary, Tertiary, or Quaternary. Refer to Colors.
Theme settingsSelect Theme Settings to access additional settings for the section. Refer to Section theme settings menu.
Custom CSSSelect Custom CSS. In the box, 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 template.