Custom Liquid
Custom Liquid lets you add your own code to a page: an app’s snippet, a tracking tag or a small piece of markup. It is a section, and also a block that you can add in the product page, the featured product, pages, the blog, blog posts and the footer.
Settings
Section titled “Settings”| Setting | What it does | Starts as |
|---|---|---|
| Liquid code | Add app snippets or other code to create advanced customizations. | Empty |
| Colors | The section’s color scheme. The block has no colors of its own | Scheme 1 (white) |
The section also has the four padding settings. See Settings every section has.
A Custom Liquid section or block shows nothing until it has code.
Before you add code
Section titled “Before you add code”Dose support does not cover code that you add, in Custom Liquid or in the theme’s files. We help with the theme as it is shipped. If you need custom code, consider hiring a Shopify Partner. See the support policy.
To learn the Liquid language, read Shopify’s Liquid reference.
Add custom Liquid
Section titled “Add custom Liquid”- Duplicate your theme, as above.
- In the theme editor of the copy, click Add section and choose Custom Liquid. Or, inside a section that accepts it, click Add block and choose Custom Liquid.
- Paste your code into Liquid code.
- Check the preview, then click Save.