Skip to content
Let’s Talk
Guides

Shopify Theme Sections and Blocks: How to Build Flexible Pages

How sections and blocks work in Shopify themes, how to use them to build flexible pages without code, and how to keep your store tidy and consistent.

By the Prism Works Studio team · · 7 min read

Key takeaways

  • Sections are the building units of a Shopify page, and blocks are the smaller pieces of content inside them.
  • Most modern themes let you add, reorder and hide sections on most templates using the theme editor without code.
  • Agreeing a small set of section patterns keeps pages consistent and makes the store easier to maintain.

If you have opened the Shopify theme editor, you have already worked with sections and blocks. They are the pieces you add, drag and configure to build your homepage, product pages and collection pages. Understanding how they fit together makes it much easier to change your store yourself, brief a developer and avoid pages that slowly drift into inconsistency.

This guide explains what sections and blocks are, how they relate to templates, what you can do with them in the theme editor and how to plan them so your store stays flexible and tidy.

Templates, sections and blocks: the basic structure

A Shopify theme is organised in layers:

  • Templates control the layout of a page type, such as the product page, collection page or a standard content page.
  • Sections are the horizontal bands that make up a template, such as a slideshow, a featured collection, an image with text or a newsletter signup.
  • Blocks are the smaller elements inside a section, such as a heading, a button, a single slide, a testimonial or a product detail like price or variant picker.

Think of a template as a page, sections as the rows on that page and blocks as the content inside each row. Each section and block has settings, such as text, images, colours or layout options, that you adjust in the theme editor.

How sections work in modern themes

Modern Shopify themes allow sections to be added, removed and reordered on most templates, not just the homepage. This means a product page can include sections beneath the main product area, such as a feature list, a comparison table or related products, and a content page can be built from several sections rather than a single block of text.

Sections fall broadly into two groups. Some appear in a single template and are configured there. Others sit in shared areas, such as the header and footer groups, and appear across the whole store. Changing a shared section updates it everywhere, which is convenient but means you need to think before editing.

How blocks work

Blocks let you build the content of a section piece by piece. In a slideshow, each slide is a block. In a main product section, the title, price, variant picker, buy buttons and description are often separate blocks, which means you can reorder them or remove ones you do not need.

Each section defines which blocks it accepts and sometimes how many. Some themes also support more flexible block structures that can be nested or reused across sections. What is available depends on your theme, so explore its sections and documentation before assuming a layout needs custom work.

Using the theme editor

The theme editor is where you work with sections and blocks without touching code. A typical workflow looks like this:

  1. Open the theme editor and choose the template you want to change from the page selector.
  2. Add a section from the list your theme provides, or select an existing one.
  3. Add, remove or reorder blocks inside the section.
  4. Adjust settings such as text, images, colours and spacing, checking the preview on desktop and mobile.
  5. Save, and preview the live store to confirm everything looks right.

You can usually hide a section or block temporarily rather than deleting it, which is handy for seasonal content you plan to reuse.

Alternate templates for different pages

Sometimes one product or page needs a different layout. Rather than squeezing exceptions into a single template, you can create an alternate template, such as a product template for bundles or a page template for a landing page, and assign it to the relevant items. Each alternate template has its own sections and blocks.

Alternate templates are powerful but easy to overuse. A store with many slightly different templates becomes hard to manage, because a change to one does not carry across to the others. Create a new template only when the layout genuinely needs to differ.

Dynamic content with metafields

Many section and block settings can be connected to dynamic sources, including metafields. This means a single product template can show different content for each product, such as care instructions, ingredients or size guides, pulled from data stored against that product. It is one of the best ways to keep templates consistent while still showing product-specific information. Our guide to Shopify metafields explains how to set this up.

Planning sections for a consistent store

The flexibility of sections can lead to pages that all look a little different. A few habits keep things tidy:

  • Agree a pattern library. Decide which sections you use for common needs, such as one style of image with text and one style of testimonial, and stick to them.
  • Use theme settings for colours and type. Set colour schemes and fonts globally rather than adjusting each section individually.
  • Name things clearly. Where your theme lets you rename sections in the editor, use descriptive names so colleagues know what each does.
  • Keep the order logical. Plan the flow of key templates around what shoppers need to know, from product details to reassurance and related products.
  • Review mobile first. Sections that look balanced on a wide screen can become very long on a phone.

Performance considerations

Every section adds content to the page, and some add images, videos or scripts. Stacking many heavy sections, especially near the top of a page, can slow loading. Keep the most important content near the top, compress images, avoid autoplaying video where it is not needed and remove sections that are hidden for good rather than leaving them in place indefinitely. Our guide to Shopify speed optimisation covers this in more depth.

When you need a custom section

Built-in sections cover a lot, but sometimes a layout or feature is not available. A developer can build custom sections and blocks that appear in the theme editor alongside the standard ones, with settings your team can edit. This keeps content in your hands while adding new capabilities.

When briefing custom sections, describe the content they need to hold, which settings should be editable and where they will be used. Ask for sections that follow your theme's styling so they look consistent, and keep custom code documented so it can be maintained through theme updates.

Sections and theme updates

Theme updates can add new sections and improve existing ones. If your store relies heavily on edited theme code, updating becomes harder. Using the theme editor and custom sections built in a maintainable way makes it easier to move to newer theme versions. Always update a copy of your theme first and check your templates before publishing. Our guide to Shopify theme updates explains a safe process.

Working safely on a live store

Changes in the theme editor go live as soon as you save on the published theme. For larger changes, duplicate the theme, make your edits on the copy and preview it before publishing. This gives you a fallback if something goes wrong and lets colleagues review the new layout first. Keep a short note of what changed and when, so you can trace any problems later.

Common mistakes to avoid

  • Adding a new section for every small idea, leading to very long pages.
  • Styling sections individually so colours and spacing become inconsistent.
  • Editing shared header or footer sections without realising the change applies site wide.
  • Creating many alternate templates that are hard to keep in step.
  • Leaving hidden sections in place long after they are needed.

How Prism Works Studio can help

Prism Works Studio helps UK brands plan and build Shopify stores with flexible, well organised sections, including custom sections where themes fall short. If your store has become hard to edit or you are planning a rebuild, see our website and ecommerce development service or get in touch.

FAQs

What is the difference between a section and a block in Shopify?

A section is a full width band on a page, such as a slideshow or featured collection. A block is a smaller piece of content within a section, such as a single slide, heading or button.

Can I add sections to product pages?

In most modern themes, yes. You can add sections below the main product area and reorder the blocks within the product information section.

Do I need a developer to use sections?

No. Adding, reordering and configuring sections and blocks is done in the theme editor without code. A developer is only needed for custom sections or features your theme does not provide.

Will my sections be lost if I change theme?

Section content is usually tied to the theme, so switching to a different theme generally means rebuilding layouts. Product data, collections and metafields remain in your store.

How many sections should a page have?

There is no fixed number. Include the sections shoppers need to make a decision, and remove those that add length without helping.

Can sections show different content on each product?

Yes, by connecting settings to dynamic sources such as metafields, one template can display product-specific content.

Free consultation

Let’s Talk About Growing Your Business Online.

Book a free, no-obligation 30-minute discovery call with one of our senior digital strategists.