Appearance
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:
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
From the side menu, select Custom liquid.
Select a section setting described in the following table.
Section setting name | Description |
---|---|
Heading | In the Heading box, enter text to display as a title inside the section. |
Liquid | In the Liquid box, enter Liquid template language code. |
Learn about Liquid | Follow the link to Learn about Liquid at: Shopify developers: Liquid reference |
Full width | Select 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 scheme | Use the Color scheme dropdown to set the color scheme for the section to Primary, Secondary, Tertiary, or Quaternary. Refer to Colors. |
Theme settings | Select Theme Settings to access additional settings for the section. Refer to Section theme settings menu. |
Custom CSS | Select 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 section | Select Remove section to delete the section from the current page template. |