Custom Liquid
Advanced
Last updated
Was this helpful?
Advanced
Last updated
Was this helpful?
We do not support code customizations. This guide offers a basic reference for advanced users familiar with HTML and Liquid. Always test code changes on unpublished theme copies. For assistance, we recommend reaching out to a .
With the Custom Liquid setting, you can extend your theme by adding snippets of Liquid or HTML code as a block or section in the theme editor.
Custom Liquid provides a reliable and safer option compared to directly editing your theme code. It will help keep your theme copy eligible for updates and avoid conflicts with the original theme code.
This guide shows how to add a Custom Liquid section and provides an example for adding anchor links to sections.
Follow the steps below to add Custom Liquid section and test your custom code.
Liquid is the template language used by Shopify. See their to learn more. Also check out Shopify's .
To link to a specific section on a page, you can use a Custom Liquid section with some HTML as a workaround. The HTML will include a special id
property that will allow you to link directly to that section.
Once set up, the Custom Liquid section will not affect the page layout.
Anchor link in the Header doesn't work? If your anchor link in the navigation menu points to a section on the same page, you will need to disable page transitions for the link to work. Go to Theme settings > Animation and deselect Enable page transitions.
\
Related links