Documentation
Installing sections
Step-by-step walkthrough for adding a section to your theme.
Every modblo section is a single self-contained Liquid file. You drop it into your theme’s /sections folder, save, and add it to a template via the theme editor like any built-in section.
Prerequisites
- A Shopify store on any plan (Basic, Shopify, Advanced, or Plus).
- An Online Store 2.0 theme. Dawn 13+, Refresh, Sense, Origin, and most premium themes from 2022 onward all qualify.
- Edit-code permission on your theme. The default Owner / Staff role has it; some restricted staff roles do not.
Step-by-step walkthrough
- 01On the section’s detail page, click
Buy section(premium) or copy the Liquid directly (free). The full file appears in a code panel — copy it to your clipboard. - 02In Shopify Admin, go to
Online Store → Themes. - 03Find your active theme, click the
...menu, thenEdit code. The code editor opens. - 04In the left file tree, find the
Sectionsfolder. ClickAdd a new section. - 05Name the file. We recommend the
modblo-prefix to keep modblo sections grouped together — for examplemodblo-sticky-add-to-cart. (Don’t include the.liquidextension; Shopify adds it.) - 06Shopify creates the file with a placeholder. Select all (
⌘ Aon Mac,Ctrl Aon Windows) and delete the placeholder, then paste the modblo code in. - 07Click
Savein the top right. Shopify will lint the file — if there’s a syntax error you copied incompletely, it shows up here. - 08Go back to
Online Store → Themesand clickCustomizeon your active theme. - 09Pick the template you want the section on (Home page, Product page, etc.) from the dropdown at the top.
- 10Click
Add section, scroll the list — your new section appears with the name from its{% schema %}block (e.g.Sticky Add to Cart). Click to add it. - 11Configure the settings in the right panel — text, colors, behavior. Then save the theme.
The modblo- prefix is optional
Adding a section to every page
For sections that should appear site-wide (Sticky Add to Cart, Mobile Bottom Nav, Cart Drawer, Cookie Consent, Announcement Bar Pro, Predictive Search), include the section in theme.liquid instead of adding it per-template:
layout/theme.liquid
<body>
{% sections 'header-group' %}
{{ content_for_layout }}
{% sections 'footer-group' %}
{%- comment -%} Add modblo site-wide sections here, just before </body> {%- endcomment -%}
{% section 'modblo-sticky-add-to-cart' %}
{% section 'modblo-cart-drawer-upsell' %}
{% section 'modblo-cookie-consent' %}
</body>Updating a section
When we ship updates (new features, bug fixes, design refinements), the section’s detail page on modblo always shows the latest code. To update:
- 01Open the section’s detail page on modblo.
- 02Copy the new Liquid code (your section license includes lifetime updates).
- 03In your theme editor, open the existing
modblo-{section-name}.liquidfile underSections. - 04Select all, paste the new code, save. Your existing theme-editor settings (colors, text, behavior) are preserved automatically because they live on the section instance, not in the section file.
Custom edits will be overwritten
Removing a section
Two-step removal:
- 01In
Customize, hover the section in the left list and clickRemove. (This removes it from the template only.) - 02(Optional) In
Edit code → Sections, click the file and delete it. This removes the section file from your theme entirely so it no longer shows up in the Add Section list.
Next: customizing
Read Customizing for the color, typography, and class-name conventions every modblo section follows — useful when you want to override the default look.
