Back to Support Content and Media Blocks Group Block

Group Block

The Group block brings together other blocks inside one container so that you can set a background color, adjust spacing, and organize different page sections. This guide will explain how to use the Group block on your site.

Video Introduction

Create a Group

There are a few ways to group blocks together. You can choose to start with an empty Group block and add content to it, or you can group existing blocks together. These options are described below.

Add a Group Block

To add an empty Group block, click the + block inserter button and search for “group”. Click it to add the block to the post or page. Using your keyboard, you can also type /group on a new line and press enter to quickly add a new Group block.

For more information, visit our detailed instructions on adding blocks.

After inserting a Group block, it will ask you to select a layout from the following options:

Group block layout selector
Selecting a Group, Row, or Stack variation

When you select a layout, you can then click on the + block inserter icon to start adding blocks inside the group:

Group block inserted
Click the + block inserter to add inner blocks

Group Existing Blocks

For blocks already on the page, you can group them together using the following steps:

  1. Select the block or blocks you wish to group. You can select multiple blocks by:
    • Highlighting the blocks with your mouse.
    • Clicking the first block, holding down the Shift key on your keyboard, and clicking the final block. This will select all blocks between the first and last block.
    • Using List View, click the first block, hold down the Shift key on your keyboard, and click the final block. This will select all blocks between the first and last block.
  2. In the block toolbar that appears above or below the blocks, click on the ellipses (three dots) and then choose the “Group” option. If selecting multiple blocks, new icons will appear in the toolbar to quickly create a group, or a variation of a group (row, stack, or grid):
An arrow points to the group option after clicking the three dots more options in the toolbar.
Add a single block to a group
An arrow points to the group icons in the block toolbar.
Group multiple blocks together

After clicking the Group icon in the toolbar, the blocks will be placed inside a Group block.

Select the Group Block

The Group block has several settings you can access by selecting the block. However, it’s not possible to select a Group block by clicking on it, because clicking on any block inside the group (known as child blocks) will select that inner block, instead of the overall Group block (known as the parent block.)

There are a few different methods you can use to select the parent Group block:

List View

You can select the Group block using List View at the top of the editor screen. The Group block is shown here, with all its inner blocks listed below:

The List View option expanded to show the different blocks on the page, with the Group block highlighted.
A Group block in List View

Parent Block Selector in Toolbar

When you click on a block that has been grouped, the Group block icon will appear in the block toolbar. The Group block icon, represented by two overlapping squares, appears to the left of the block you selected. You can click on the Group block icon to select the Group block:

An arrow points to the group block icon in the toolbar.

Group Block Toolbar

When you select a Group block, a toolbar of options will appear above it:

The Group block toolbar, with icons for moving the block, changing alingment, and the More Options menu.
Group block toolbar

The icons on the Group block toolbar, starting from the left, are:

Group Block Settings

When you select a block, you will find additional block settings in the right sidebar. If you do not see the sidebar, you may need to click the Settings icon in the top-right corner to bring up the settings. This icon looks like a square with two uneven columns:

The settings icon in the Editor with a tooltip "Settings" below it.
Click the Settings icon to open the block settings

Transform to Row, Stack, or Grid

Switch the Group block to one of the following variations:

Layout Settings

Use the layout settings to control the width and position of blocks inside a group:

Layout settings in the Group block

When the option “Inner blocks use content width” is toggled OFF, blocks added within the Group block will fill the width of the page’s default content area.

For more control over the width of the inner blocks, toggle the “Inner blocks use content width” option to the ON position. You can then specify the width of the inner blocks using the following options:

There is no option to set the width for the Full-width option because blocks set to full-width will span the entire screen width by default.

Group block Layout settings

You can use the Justification setting to align the inner blocks to the group’s left, right, or center.

Position Settings

Set the Group block position to Sticky to make the group appear pinned to the top of the window as the viewer scrolls down. A pin icon will appear next to the Group block in List View.

An animated GIF showing an example of a group stuck to the top of the screen as the reader scrolls down.
The subscription box is a group pinned to the top of the screen

Only top-level groups can be set as sticky. Ensure the Group block is not nested inside any other block for the sticky effect to work.

If the position setting is set to Default, the group will appear in the order presented on the page.

Advanced

Learn more about advanced block settings.

Group Block Styles

In the block settings sidebar, click on the Styles icon to access the design settings for the block. The Styles icon is in the shape of a circle with half of the circle filled in:

An arrow points to the Styles icon that you can click to open up the block styles section.

Here, you can set the text color, background color, text size and fonts, padding, margin, and block spacing. See the following guides for more details on how to use these settings:

Background Image

In the Group block styles, you can also set a Background image to display behind the block’s content:

  1. Select the Group block.
  2. In the settings sidebar on the right, click on the Styles tab.

If you do not see the sidebar on the right, click the Settings icon in the top right corner to bring up the settings. This icon looks like a square with two uneven columns:

The Settings icon at the top of the WordPress Editor highlighted.
The settings icon in the top right corner
  1. Under Background, click on “Background image” to reveal the following options:
    • Open Media Library: Select an existing image from your site’s Media.
    • Upload: Add a new image from your computer or device.
    • Reset: Remove the background image.

The background image will take priority over any background color set.

By clicking on the three dots menu next to “Background Image,” you may define the Size option for your image:

If “Contain” or “Fixed” is chosen for the size option, you may also choose if the image will be repeated using the “Repeat Image” setting that appears.

Displayed options for defining the sizing of Background Images for group blocks.

Ungroup Blocks

If you wish to remove a Group block without erasing the inner blocks within, you can ungroup the blocks instead. Follow these steps:

  1. Select List View at the top of the editing screen.
  2. Select the Group block.
  3. Click the three dots next to the Group block
  4. Select the Ungroup option.
GIF showing the action of selecting Ungroup in the block toolbar.

Was this guide helpful for you?

Not quite what you're looking for? Get Help!

Copied to clipboard!