How a page is built
product/default, holds an ordered list of sections.
A section can hold blocks.
Merchants edit one template at a time.
What each panel reads
The rail also has Site Menu, where merchants edit navigation menus, navigation bars, and footers.
Make sections available
The Sections panel lists a section under Drag to add when its schema allows the current template, and under Not available here when it doesn’t. A section withoutenabled_on is available on every template.
The editor does not read
disabled_on.
To keep a section off a template, list the templates it belongs on in enabled_on.Make sections and blocks selectable
Fluid wraps each section in an element that the editor uses to select it, so a section needs no extra markup. Add{{ block.fluid_attributes }} to each block’s outer element.
Without it, merchants can’t select the block in the preview.
See blocks and components.
Change behavior in the editor
Some sections need to behave differently while a merchant edits them. A grid that shoppers see locked behind an overlay has to stay clickable in the editor, or merchants can’t select its blocks. A helper note for merchants must never reach shoppers. Branch onrequest.design_mode.
It’s true when the Page Editor renders the page and false on the live site.
Shape the settings panel
The settings panel renders a section’s or block’ssettings in order:
- A
headersetting starts a collapsible group. visible_ifshows a setting only when its condition is true.infoadds help text below a control.
Edit code in the editor
Code in the top bar switches the template to code editing. Its tabs hold the template’s Liquid, its CSS when the template has its own stylesheet, and its variables as JSON. A section opened from the Sections panel always opens in code mode. For larger changes, work locally with the Fluid CLI and preview them withfluid theme dev.