Convert a Shopify Section to a Block (Horizon Theme version)

In Horizon, Shopify allows developers to convert standalone sections into reusable blocks, giving merchants even more control in the theme editor. Let’s walk through the process step by step.

Convert a Shopify Section to a Block (Horizon Theme version)
7 sections

Shopify’s new Horizon theme architecture introduces more flexible ways to design pages, thanks to updates in how sections and blocks work. If you’ve been building themes for a while, you might be familiar with the old model where sections controlled the layout and blocks were limited inside those sections.

In Horizon, Shopify allows developers to convert standalone sections into reusable blocks, giving merchants even more control in the theme editor. Let’s walk through the process step by step.

1. Understand the Difference Between Sections and Blocks

  • Sections
  • Top-level containers on a page.
  • Can include multiple blocks inside them.
  • Used for big layout elements (e.g., hero banners, product grids, footers).
  • Blocks
  • Child elements inside sections.
  • Previously limited to “sub-content” (like text, buttons, or images).
  • Now in Horizon, blocks can be promoted so they behave like mini-sections.
  • 👉 Example: Instead of merchants adding a whole “Image with Text” section, you can now let them add an image block anywhere inside a section.

    2. Original Section Schema Example

    Let’s say you have a section called section/image-with-text.liquid:

    This is a section — it appears as a big component in the theme editor.

    3. Convert Section to a Block

    You’ll move it inside blocks section or create a new block file blocks/image-with-text.liquid. Then, paste the content.

    4. Update the Markup

    Inside the liquid content of a new block file, replace anything section. by block.

    5. Benefits in Horizon

  • Merchants can reorder blocks more easily.
  • Developers can reduce the number of separate sections.
  • Layouts become more modular and flexible.
  • Works smoothly with Shopify’s new nested blocks and drag-and-drop editor in Horizon.
  • 6. Best Practices

  • Keep your sections as containers and blocks as repeatable units.
  • Use presets to make it easier for merchants to add common block combinations.
  • Test in the theme editor to confirm that merchants can drag, drop, and customize without confusion.
  • Final Thoughts

    The new Horizon theme structure blurs the line between sections and blocks, making Shopify themes more modular and customizable than ever. By converting old sections into blocks, you give merchants granular control over their store’s design while keeping your theme lightweight and future-proof.

    Tags

    Related Articles

    Boost Sales Today: The Simple Power of Free Shipping Thresholds for Shopify Stores
    Tips & Tricks

    Boost Sales Today: The Simple Power of Free Shipping Thresholds for Shopify Stores

    Discover how implementing a strategic free shipping threshold can dramatically increase your Shopify store's conversion rates and average order value. Learn quick, actionable steps for both merchants and developers to set up and optimize this powerful tactic within a single day.

    May 16, 20266 min
    Boost Conversions: How to Add a Countdown Timer to Your Shopify Store
    Tips & Tricks

    Boost Conversions: How to Add a Countdown Timer to Your Shopify Store

    Learn how to add an urgency-driving countdown timer to your Shopify product pages and sales promotions. This tutorial covers methods from theme editor blocks to custom Liquid code and when to choose a dedicated app, helping you drive conversions.

    May 14, 20268 min
    How to Add Tailwind CSS to Shopify
    Tips & Tricks

    How to Add Tailwind CSS to Shopify

    Learn how to add Tailwind CSS to Shopify for faster, responsive design. Enhance your store’s look with clean, utility-first styling. Perfect for theme customization

    May 10, 202615 min
    Bulk import and create new Shopify Online Store Navigation Menus
    Tips & Tricks

    Bulk import and create new Shopify Online Store Navigation Menus

    Use Excel or CSV spreadsheet files to easily migrate and create new complex navigation menu structures for your store.

    May 10, 20261 min