Praesent Convallis Rutrum
You can include a section in a template file using the section
tag. This tag behaves like the include tag for snippets: {% section 'header' %}
will include the section located at sections/header.liquid
. By explicitly calling a section this way, it is referred to as being static.
A section can be included in multiple templates, but there exists only one instance of that section. When a merchant changes the configuration of a static section in one place, that change will apply to all other places where the section is included. Note that sections cannot include other sections.
← Older Post Newer Post →