Theme guide
The Shopify Custom Liquid block, explained (with free snippets)
What you’ll need
The theme editor (to add a Custom Liquid block; no code editing)
How to get this: The theme editor
- Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
- Add section or Add block › Custom Liquid, paste the code, then Save.
Your settings for the feature (for example your free shipping amount or countdown end date)
Block or section?
- A Custom Liquid block sits inside a section, like Product information, and can use that section’s product.
- A Custom Liquid section is a full-width section you can add to any template or to the header and footer areas.
Limits and tips
- Shopify checks the Liquid when you save and refuses code with syntax errors.
- Keep each block small. Ours are 3 to 8 KB.
- Test on a duplicate theme or in the editor preview before saving on your live theme.