Most sections come with their own fixed kinds of block: a slideshow has slides, a footer has columns. A few of Masthead's sections work differently. They are open containers that you fill with theme blocks: ten small building blocks that can be added in any order, repeated, and nested inside each other. This is how you build a layout the theme didn't plan for, without touching code.
Sections that take theme blocks
- Image banner
- Image with text
- Newsletter
- Editorial product spread
- Promo banner
- Rich text
In these sections, click Add block and choose any theme block. The section decides where its blocks sit, for example over the image in an image banner or beside the image in an image with text. The blocks decide what is said there.
Every other section keeps its own blocks, described on that section's page. A section uses one kind or the other, never both.
How nesting and groups work
Added straight to a section, blocks stack one under another. To do more than that, use a Group block. A group is a block that holds other blocks:
- Side by side. Set a group's Direction to Horizontal and its blocks sit in a row, wrapping onto new lines on small screens.
- Columns. Put two or three vertical groups inside one horizontal group. Each inner group is a column with its own blocks.
- Panels. Turn on Use a background and the group gets its own color scheme, padding and optional background image, like a card inside the section.
- Spacing. Space between blocks sets one even gap between everything inside the group, so you rarely need spacers.
To put a block inside a group in the theme editor:
- Add a Group block to the section.
- In the left sidebar, click Add block directly under that group, indented beneath it, and choose a block.
- Or drag an existing block onto the group. Blocks inside a group are shown indented under it.
When you add a group, the editor offers 3 starting points: Group, Heading, text and button and Two columns. The last two come filled with blocks, to save you the first few clicks.
Alignment is inherited. A heading or text block set to Same as section follows the group it sits in, and a group follows its section. Set the alignment once on the outside, and override it on a single block only when you need to.
Heading
A heading, with an optional eyebrow line above it. When section numbers are on, the eyebrow line starts with the section's number, for example No. 03.
| Setting | Options | What it does |
|---|---|---|
| Eyebrow | Text. | A short label above the heading, shown after the section number. |
| Show section number | On or off. Default: on. | Shows the section's number in the eyebrow line. It also needs Number sections turned on in theme settings under Layout. |
| Heading | Text. | The heading text. Select a word and make it italic for emphasis. |
| Heading size | Small, Medium, Large or Extra large. Default: Medium. | One of the theme's four heading sizes. |
| Use a custom size | On or off. Default: off. | Replaces the size above with an exact size of your own. |
| Custom size | 20 px to 160 px. Default: 72 px. | The heading's size on desktop, used when Use a custom size is on. It scales down on smaller screens. |
| Font | Heading, Body or Accent. Default: Heading. | Which of your three typefaces the heading uses. They are chosen in theme settings under Typography. |
| Letter case | Default or Uppercase. Default: Default. | Uppercase sets this heading in capitals. |
| Alignment | Same as section, Left, Center or Right. Default: Same as section. | Same as section follows the section or group the block sits in. The others override it for this block. |
| Heading level | Automatic, H1, H2 or H3. Default: Automatic. | The heading's level for search engines and screen readers. Automatic makes it the page heading (H1) in the first section of a page, and H2 elsewhere. Change it only when you stack several headings in one section. |
Text
A paragraph or more of formatted text, from body copy to large statements or small capitals.
| Setting | Options | What it does |
|---|---|---|
| Text | Formatted text. | The text. Bold, italic, links and lists are supported. |
| Size | Small, Medium, Large or Extra large. Default: Medium. | One of four text sizes. |
| Use a custom size | On or off. Default: off. | Replaces the size above with an exact size of your own. |
| Custom size | 12 px to 48 px. Default: 18 px. | The text's size on desktop, used when Use a custom size is on. It scales down on smaller screens. |
| Font | Heading, Body or Accent. Default: Body. | Which of your three typefaces the text uses. Accent suits pull quotes and captions. |
| Letter case | Default or Uppercase. Default: Default. | Uppercase sets this text in capitals. |
| Alignment | Same as section, Left, Center or Right. Default: Same as section. | Same as section follows the section or group the block sits in. |
| Line length | Comfortable or Full width. Default: Comfortable. | Comfortable keeps lines short enough to read easily. Full width lets the text run the width of its container. |
Buttons
One or two buttons, side by side. A button with no label is not shown.
| Setting | Options | What it does |
|---|---|---|
| First button | ||
| Button label | Text. | The first button's text. Leave empty to hide the button. |
| Button link | Link. | Where the first button goes. |
| Button style | Solid, Outline or Text link. Default: Solid. | Solid is filled, Outline has a border only, and Text link is an underlined link. |
| Second button | ||
| Button label | Text. | The second button's text. Leave empty to show one button. |
| Button link | Link. | Where the second button goes. |
| Button style | Solid, Outline or Text link. Default: Outline. | The second button's style. A different style from the first makes clear which action matters more. |
| Appearance | ||
| Size | Small, Medium or Large. Default: Medium. | The size of both buttons. |
| Button color | Color. | Optional. A color for these buttons, in place of the section's button color. |
| Label color | Color. | Optional. The label color on solid buttons. In the theme editor, a note appears under the buttons if the two colors are too close to read. |
Image
An image cropped to a shape you choose, with an optional caption set under it like a photo credit, and an optional link.
| Setting | Options | What it does |
|---|---|---|
| Image | Image. | The image. It is cropped around its focal point. |
| Image ratio | Adapt to image, Portrait (4:5), Square (1:1) or Landscape (3:2). Default: Portrait (4:5). | The shape the image is cropped to. Adapt to image keeps the image's own shape. |
| Width | 25% to 100%. Default: 100%. | How much of the available width the image takes. |
| Caption | Text. | A line of small text under the image. Optional. |
| Link | Link. | Optional. Makes the image a link. |
Video
A video with a play button. Use a video uploaded to Shopify, or a YouTube or Vimeo link. A YouTube or Vimeo video is only loaded when the customer presses play, so it does not slow the page.
| Setting | Options | What it does |
|---|---|---|
| Shopify-hosted video | Video. | A video uploaded to Shopify. If you set both, this one is used and the link below is ignored. |
| YouTube or Vimeo link | Video link. | A YouTube or Vimeo link, used when no Shopify-hosted video is chosen. |
| Cover image | Image. | The image shown until the customer presses play. |
| Image ratio | Widescreen (16:9), Square (1:1) or Portrait (4:5). Default: Widescreen (16:9). | The shape of the video frame. |
| Video description | Text. | Describes the video for customers using screen readers, and is shown as a caption below it. |
Product
One product, shown as the theme's product card with quick add. It follows your theme settings under Product cards.
| Setting | Options | What it does |
|---|---|---|
| Product | Product. | The product to show. |
| Width | 25% to 100%. Default: 60%. | How much of the available width the card takes. |
Collection
One collection, shown as a card with the collection's image and title, linking to the collection.
| Setting | Options | What it does |
|---|---|---|
| Collection | Collection. | The collection to show. |
| Image ratio | Portrait (4:5), Square (1:1) or Landscape (3:2). Default: Portrait (4:5). | The shape the collection's image is cropped to. |
| Width | 25% to 100%. Default: 60%. | How much of the available width the card takes. |
Accordion row
One collapsible row: a heading that opens to show text. Place several rows one after another and they read as a single accordion.
| Setting | Options | What it does |
|---|---|---|
| Heading | Text. | The row's heading, usually a question or a topic. |
| Text | Formatted text. | The text shown when the row is open. |
| Open by default | On or off. Default: off. | Shows the row open when the page loads. |
Spacer
Empty space between two blocks, with a separate height on mobile.
| Setting | Options | What it does |
|---|---|---|
| Height | Small, Medium, Large or Extra large. Default: Medium. | The height of the space on desktop. |
| Height on mobile | Small, Medium, Large or Extra large. Default: Small. | The height of the space on mobile. |
Group
A container for other blocks. A group stacks its blocks or sets them side by side, controls the spacing and alignment between them, and can have its own background. Groups can be placed inside groups.
| Setting | Options | What it does |
|---|---|---|
| Direction | Vertical or Horizontal. Default: Vertical. | Vertical stacks the blocks. Horizontal sets them side by side; they wrap onto new lines on small screens. |
| Space between blocks | Small, Medium or Large. Default: Medium. | The space between the blocks inside the group. |
| Horizontal alignment | Start, Center or End. Default: Start. | Aligns the blocks to the start, center or end, from side to side. Text inside follows. |
| Vertical alignment | Start, Center or End. Default: Start. | Aligns the blocks from top to bottom. It shows when the blocks in a horizontal group have different heights. |
| Use a background | On or off. Default: off. | Gives the group its own background, in the color scheme below, with padding around its blocks. The settings below it apply only when this is on. |
| Color scheme | Color scheme. | The color scheme of the group's background and of everything inside it. |
| Padding | 0 px to 80 px. Default: 32 px. | The space between the edge of the background and the blocks inside. |
| Background image | Image. | An optional image behind the group, cropped around its focal point. Use the overlay to keep the text readable. |
| Overlay color | Color. Default: #000000. | The color laid over the background image. |
| Overlay opacity | 0% to 90%. Default: 40%. | How strong the overlay is. 0% shows the image untouched. |
Image sizes
| Image | Recommended | Notes |
|---|---|---|
| Image block | 2000 px on the longer side | Cropped to the block's Image ratio: 4:5, 1:1 or 3:2, or left in its own shape. |
| Video block cover image | 1920 x 1080 px for widescreen | Match the cover to the frame's ratio: 16:9, 1:1 or 4:5. |
| Group background image | 2000 px wide or more | Cropped to the group's size around its focal point. Use the overlay to keep text readable. |
Tips
- Start simple: a heading, a text block and a buttons block cover most sections. Reach for groups when you want things side by side.
- Keep one heading per section at Automatic heading level. If you stack several headings, set the smaller ones to a lower level so the page keeps a clear outline for search engines and screen readers.
- Check nested layouts on mobile. A horizontal group wraps when it runs out of room, which may change the order you had in mind.