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

    Boosting Customer Retention with Email and SMS Marketing on Shopify
    Tips & Tricks

    Boosting Customer Retention with Email and SMS Marketing on Shopify

    Learn how to leverage email and SMS marketing to drive repeat sales, increase brand exposure, and improve customer retention for your Shopify store. Discover practical strategies and actionable tips to enhance your marketing efforts. From personalized messages to timely re-engagement campaigns, we've got you covered.

    June 28, 20262 min
    Connect GitHub to Shopify
    Tips & Tricks

    Connect GitHub to Shopify

    Connecting GitHub to Shopify allows you to version control your theme code, collaborate with your team, and deploy changes smoothly

    June 22, 202610 min
    10 Actionable Shopify SEO Tips to Boost Your Store's Ranking
    Tips & Tricks

    10 Actionable Shopify SEO Tips to Boost Your Store's Ranking

    Improve your Shopify store's visibility and drive more sales with these 10 actionable SEO tips. From keyword optimization to site speed and mobile-first design, learn how to boost your store's ranking and attract more customers. Start optimizing your store today and watch your sales soar.

    June 20, 20264 min
    How to Add a Smooth Back-to-Top Button to Your Shopify Theme
    Tips & Tricks

    How to Add a Smooth Back-to-Top Button to Your Shopify Theme

    Learn how to add a back-to-top button to your Shopify theme with lightweight CSS and JS, improving user experience and navigation. Follow our step-by-step tutorial for a seamless implementation.

    June 18, 20263 min