Sections and blocks
You can use sections in your theme to create the layout that you want for your online store. Most sections are made up of blocks that have a specific function, such as text, buttons, single images, a collage of images, or links. Using sections and blocks in your templates provides flexibility in how you arrange your content, enabling you to control the style and feel of your online store without the need to edit code. Each template can have up to 25 sections.
Each section has a specific variety of blocks that you can add to it. You can add up to 50 blocks per section. The sections and blocks that are available depends on your theme. For more information about which options are available to you, refer to your theme documentation.
Some sections have limits on the number of blocks that you can add, or limits on the number of blocks of a certain type. For example, the Image with text section displays only the blocks specified by the theme designer for your theme. In Dawn, the free Shopify theme, you can add only one of each of the following blocks to the Image with text section:
- a Heading block
- a Text block
- a Button block
- a Caption block
You can further customize the Image with text section with the following options:
- add an image and set its size
- select an animation style for your image
- choose the alignment for the content of your blocks
- set a color scheme for the section
If you reach the limit on the number of blocks that you can add, then the Add block option in the theme editor is greyed out and you can't click or tap it. For example, in the Image with text section in Dawn theme, if you've added a Heading block, a Text block, a Button block, and a Caption block, then Add block (4/4) displays, because you've already added all 4 blocks that are available in the Image with text section.
If the sections that you add to your store layout don't include the settings or options that you need, then you can edit your theme code or contact your theme's developer for support.
On this page
Customizing your theme templates with sections and blocks
When you open the theme editor, your store's home page loads by default. You can use the drop-down menu to select a different template, such as products, collections, pages, or blogs, or use the search bar in the template drop-down to search for a specific template. When you select a template, it loads into the theme editor, and any changes you make are previewed in the editor.
Add a section
Add a new section to any page in your online store.
Steps:
Desktop
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, and then click Customize.
- Customize your home page, or click the Home page drop-down menu and then select the template that you want to add a section to.
- In the sidebar, click Add section, and then take one of the following steps:
- Select a section from the list.
- Use the Search sections field to find a specific section, and then select it.
- Customize your new section by taking any of the following steps:
- Edit the settings and content of your new section.
- Edit the settings and content of the default blocks that load with the section.
- Click Add block to add a new block.
- Optional: To rearrange the order of the sections on your page, hover on the section name and then click and drag the
⋮⋮
icon. - Click Save.
iPhone
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Customize your home page, or tap the Home page drop-down menu and then select the template that you want to add a section to.
- Tap Sections, then tap Add section, and then take one of the following steps:
- Select a section from the list, and then tap Add.
- Tap the magnifying glass icon to search for a specific section, select your section, and then tap Add.
- Customize your new section by taking any of the following steps:
- Edit the settings and content of your new section.
- Edit the settings and content of the default blocks that load with the section.
- Tap Add block to add a new block.
- Optional: To rearrange the order of the sections on your page, tap and drag the section.
- Tap Save.
Android
- From the Shopify app, tap the ☰ button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Customize your home page, or tap the Home page drop-down menu and then select the template that you want to add a section to.
- Tap Sections, then tap Add section, and then take one of the following steps:
- Select a section from the list, and then tap Add.
- Tap the magnifying glass icon to search for a specific section, select your section, and then tap Add.
- Customize your new section by taking any of the following steps:
- Edit the settings and content of your new section.
- Edit the settings and content of the default blocks that load with the section.
- Tap Add block to add a new block.
- Optional: To rearrange the order of the sections on your page, tap and drag the section.
- Tap ✓.
Edit a section
Desktop
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, and then click Customize.
- Edit a section on your home page, or click the Home page drop-down menu and then select the template that contains the section that you want to edit.
- In the sidebar, click a section name to load the content into the preview window and access the settings and options that are available for you to edit.
- Optional: Click individual blocks to edit the blocks within a section.
- Click Save.
iPhone
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Edit a section on your home page, or tap the Home page drop-down menu and then select the template that contains the section that you want to edit.
- Tap Sections, and then tap a section name to load the content into the preview window and access the settings and options that are available for you to edit.
- Optional: Tap individual blocks to edit the blocks within a section.
- Tap Save.
Android
- From the Shopify app, tap the ☰ button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Edit a section on your home page, or tap the Home page drop-down menu and then select the template that contains the section that you want to edit.
- Tap Sections, and then tap a section name to load the content into the preview window and access the settings and options that are available for you to edit.
- Optional: Tap individual blocks to edit the blocks within a section.
- Tap ✓.
Duplicate a section or block
Desktop
- From your Shopify admin, go to Online Store > Themes.
- Find the theme that you want to edit, and then click Customize.
- Duplicate a section or block on your home page, or click the Home page drop-down menu and then select the template that contains the section or block that you want to duplicate.
- Click the section or block that you want to duplicate.
- In the sidebar, click … > Duplicate.
- Click Save.
iPhone
- From the Shopify app, tap the … button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Duplicate a section or block on your home page, or tap the Home page drop-down menu and then select the template that contains the section or block that you want to duplicate.
- Tap Sections, and then tap the section or block that you want to duplicate.
- Tap … > Duplicate.
- Tap Save.
Android
- From the Shopify app, tap the ☰ button.
- In the Sales channels section, tap Online Store.
- Tap Manage all themes.
- Find the theme that you want to edit, and then tap Customize.
- Duplicate a section or block on your home page, or tap the Home page drop-down menu and then select the template that contains the section or block that you want to duplicate.
- Tap Sections, and then tap the section or block that you want to duplicate.
- Tap