---
title: Sections best practices
description: Learn how to add flexibility to your theme using theme components.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/architecture/sections/best-practices
  md: >-
    https://shopify.dev/docs/storefronts/themes/architecture/sections/best-practices.md
---

# Sections best practices

When you're designing a theme, you should consider when to provide functionality in a section or a block. Sections and blocks are modular components that give merchants the opportunity to customize and extend their theme.

These guidelines apply to [Online Store 2.0](https://shopify.dev/docs/storefronts/themes/best-practices/version-control) themes, which use [JSON templates](https://shopify.dev/docs/storefronts/themes/architecture/templates) and [section groups](https://shopify.dev/docs/storefronts/themes/architecture/section-groups). You can't add or remove [static sections](https://shopify.dev/docs/storefronts/themes/architecture/sections#statically-render-a-section) from Liquid templates or layouts.

[Sections](https://shopify.dev/docs/storefronts/themes/architecture/sections) are available on all pages.

When building theme templates, you should ensure that your template's default content is available in a main template section, and that sections can be added, removed, and reordered. You can use sections to do the following:

* To add, remove, or reorder content at the template or section group level

* To control theme settings that are scoped to the entire section's layout and content

  ![Merchants can stack multiple sections together to populate a template.](https://shopify.dev/assets/assets/images/themes/templates-tutorial/modularity-by-stacking-5gFGCzIW.png)

***
