Custom Liquid
Section
We do not support code customizations. This guide offers a basic reference for developers and advanced users familiar with HTML and Liquid. Always test code changes on unpublished theme copies. For assistance, we recommend reaching out to a verified Fluorescent partner.
With the Custom Liquid section, you can extend your theme by adding snippets of Liquid or HTML code as a section in the theme editor.
The Custom Liquid section 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.
Add Custom Liquid
Click (+) Add section and select Custom Liquid. Use the drag-and-drop handles ⋮⋮
to re-order blocks. Click the section to start customizing.
See Shopify's Liquid reference guide and Liquid code examples to learn more.
Add anchor links to sections
Shopify dynamically generates ids for sections but these ids are not stable. The following instructions are a workaround for this platform limitation.
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.
Last updated