What Is Group Block in Gutenberg WordPress?
The Group block is Gutenberg's layout container. How Group, Row, Stack and Grid layouts work, the HTML element setting, and when to use Columns or Cover.

The Group block is the block editor’s container. It wraps other blocks in one element so you can give them a shared background, padding, border, width and layout, and move or reuse them as a single unit. Its official description in the Gutenberg source is short: “Gather blocks in a layout container.”
What makes it more than a box is its layout setting. The same block, core/group, appears in the inserter as four tools: Group (constrained layout), Row (horizontal flex), Stack (vertical flex) and Grid. Pick the right one and most page layouts need no custom CSS at all.
Our team checked everything here against the Group block’s block.json and variations.js in the Gutenberg repository, and against the copy that ships in WordPress 7.1 core, on 18 November 2026. Current stable WordPress is 7.1.4. This page had no recorded Search Console queries when we refreshed it, so the headings follow the questions people ask when they first meet the block.
What is the Group block in Gutenberg?
It is a core block, registered as core/group in the Design category, that holds other blocks. Anything can go inside: paragraphs, images, buttons, columns, even more Group blocks. Its search keywords tell you how people think of it: “container”, “wrapper”, “row” and “section”.
On the front end a Group renders as one HTML element, a <div class="wp-block-group"> by default, with your blocks inside it. Styles you set on the Group (background, padding, border, shadow) apply to that wrapper. They do not get copied onto each inner block. Text color and link color set on the Group are inherited by the text inside through normal CSS, which is why changing them on the Group changes the whole section.
People use it for three jobs:
- Sections. A full-width band with a background color, a hero, a call to action, a footer area.
- Layout. Putting a logo and a menu side by side (Row), a stack of cards with even gaps (Stack), a grid of features (Grid).
- Structure. Turning a chunk of blocks into a
<section>,<header>or<main>element, or into a unit you save as a pattern.
Nearly every pattern you insert, from WordPress.org or from your theme, is built on a Group. Our guide to WordPress block patterns shows how those wrappers get reused.
How do I add a Group block?
There are three ways, and the second is the one you will use most.
- From the inserter. Click the + button, search “Group”, and insert it. An empty Group shows a placeholder that reads “Group blocks together. Select a layout:” with the Group, Row, Stack and Grid choices.
- From existing blocks. Select several blocks (click the first, Shift + click the last), then press Ctrl + G on Windows or Cmd + G on a Mac. The editor registers this shortcut as “Create a group block from the selected multiple blocks.” You can also use the “Group” option in the block toolbar or the three-dot Options menu.
- By transforming. Select a block, open its Transform menu (the block icon in the toolbar), and choose Group, Row, Stack or Grid.
To take blocks back out, select the Group and choose Ungroup from the Options menu. The inner blocks stay; only the wrapper goes.
The List View (the stacked-lines icon at the top of the editor) is the easiest way to see and select Groups. Nested containers are hard to click on the canvas, but in List View each one is a row you can select, rename and drag.
What are the Group block layout types?
The Group block uses the layout support built into the block editor. There are four layout types, and each variation in the inserter is just a Group with one of them preset. Here is what variations.js sets for each:
Inserter name | Layout attribute | What it does |
|---|---|---|
Group |
| Inner blocks centred at the theme’s content width, with wide and full alignments available |
Row |
| Inner blocks side by side in one line, no wrapping by default |
Stack |
| Inner blocks stacked vertically with an even gap |
Grid |
| Inner blocks in a CSS grid, by column count or minimum column width |
A fifth type, default, shows in the editor as “Flow”. You get it when you turn off “Inner blocks use content width” on a constrained Group. The renderer adds a matching class to the wrapper (is-layout-constrained, is-layout-flow, is-layout-flex or is-layout-grid), which you can see in core’s layout.php. The walk-through of layout classes on the WordPress Developer Blog explains how those classes replaced the old one-off container classes.
Constrained (the default Group)
Constrained is the layout most sections want. Inner blocks are held to the content width set in your theme’s theme.json (or in Styles > Layout), centred, and any inner block can still be set to wide or full width. With the toggle on, the sidebar help text reads “Nested blocks use content width with options for full and wide widths.” With it off: “Nested blocks will fill the width of this container.”
You can also give a single Group its own Content width and Wide width in the Layout panel, which is handy for a narrow call-to-action box inside a wide page.
Flow (content width turned off)
Flow just stacks blocks in normal document flow, each one taking the Group’s full width. Use it when the Group is already narrow (inside a column, a sidebar or a card) and you do not want a second width limit inside it.
Row and Stack (flex)
Both are CSS flexbox. Row runs horizontally and Stack vertically. In the sidebar you get Justification (left, center, right, space between, and stretch for Stack), vertical Alignment, Orientation, and “Allow to wrap to multiple lines”. Block spacing sets the gap between items.
Note the Row default: flexWrap: nowrap. Items stay on one line even when the screen is too narrow. Turn on wrapping for any Row that holds more than two or three short items, or it will overflow on phones.
Grid
Grid uses CSS grid. In the Layout panel you choose between a fixed number of columns (“Columns and rows”) and a “Min. column width” that lets the browser fit as many columns as space allows. The minimum width mode is the responsive one: set 12rem and you get one column on a phone and four or five on a desktop with no media queries. Inner blocks of a Grid can also span several columns or rows from their own sidebar.
What does the Group block markup look like?
This is the saved block markup for each layout, the same thing you see in the Code editor (Ctrl + Shift + Alt + M, or Options > Code editor). Checked on 18 Nov 2026 against Gutenberg trunk and WordPress 7.1:
<!-- Checked on 18 Nov 2026: constrained Group as a <section> -->
<!-- wp:group {"tagName":"section","align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"backgroundColor":"accent-5","layout":{"type":"constrained"}} -->
<section class="wp-block-group alignfull has-accent-5-background-color has-background" style="padding-top:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50)">
<!-- wp:heading -->
<h2 class="wp-block-heading">Our services</h2>
<!-- /wp:heading -->
</section>
<!-- /wp:group --><!-- Row that wraps on small screens -->
<!-- wp:group {"layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
<div class="wp-block-group"><!-- inner blocks --></div>
<!-- /wp:group -->
<!-- Grid with a minimum column width -->
<!-- wp:group {"layout":{"type":"grid","minimumColumnWidth":"12rem"}} -->
<div class="wp-block-group"><!-- inner blocks --></div>
<!-- /wp:group -->The accent-5 color and 50 spacing slugs come from Twenty Twenty-Five; your theme’s presets may use other names. Layout classes such as is-layout-flex are not in the saved markup. WordPress adds them when it renders the page, along with a generated wp-container- class that carries per-block layout CSS.
How do I change the HTML element of a Group block?
Select the Group, open the Settings sidebar, expand Advanced, and use the HTML element dropdown. The tagName attribute defaults to div, and the editor offers these options:
<div>(default) for plain wrappers.<header>and<footer>for site or section headers and footers.<main>for the main content area. Use it once per page.<section>for a themed chunk of a page that would have its own heading.<article>for self-contained content such as a post card.<aside>for side content like a sidebar or a pull-out note.
This matters for accessibility. Screen readers list <main>, <header>, <footer> and <aside> as landmarks, so people can jump straight to them. The Group also supports an anchor (HTML ID) and an ARIA label, so you can name a landmark, for example two <aside> regions labelled “Related posts” and “Newsletter”.
Duplicate <main> elements are a real problem in block themes, because the template often has one already. A Gutenberg issue from 2021 (#35354) asked for a warning, and the current HTML element control now marks <main> as “(Already in use)” and warns: “Multiple <main> elements detected.” If you see that, switch your Group back to <div> or <section>.
What styling options does the Group block have?
From the Group’s block.json in WordPress 7.1, the block supports:
Panel | Options |
|---|---|
Color | Text, background, gradient, link, heading and button colors |
Background | Background image and size |
Typography | Font size, line height, font family, weight, style, transform, decoration, letter spacing |
Dimensions | Padding, top and bottom margin, block spacing (gap), minimum height |
Border and shadow | Border color, width, style, radius; box shadow |
Position | Sticky (useful for headers) |
Alignment | Wide and full |
Not every theme exposes every option. Themes can switch controls off in theme.json, which is why a panel you see on one site may be missing on another.
Typography set on a Group is inherited by text blocks inside, the same way CSS inheritance works on any wrapper. That makes a Group a quick way to change the font size or color of a whole section, and a quick way to get surprised later when one paragraph refuses to match the rest.
When should I use Group vs Columns vs Cover?
All three can hold other blocks, which is why people mix them up. They solve different problems.
Block | Use it for | Mobile behaviour | Avoid when |
|---|---|---|---|
Group | Sections, wrappers, side-by-side items (Row), even stacks (Stack), card grids (Grid) | Row wraps only if you enable it; Grid with min width reflows on its own | You need a text-over-image hero with an overlay |
Columns | A fixed set of columns with different content, such as text beside an image | Stacks on mobile by default (“Stack on mobile” on); core stacks below 782px | You have many equal items; a Grid reflows better |
Cover | A section with an image or video behind text, with an overlay color and opacity | Background crops to fit; set a focal point | You only need a plain background color; a Group is lighter |
A few rules of thumb from our own builds:
- Three or more equal cards in a row: Grid with a minimum column width, not Columns. Columns force the same count at every width until the stacking breakpoint.
- Logo and menu in a header: Row with “space between”.
- Image on one side and text on the other: Columns, or the Media & Text block.
- A colored band behind a heading and buttons: Group. Use Cover only when there is a real image or video behind the text.
Tables are a different story again; a Group will not make a wide table fit a phone. Our guide on responsive tables in WordPress covers that.
How do I make a Group block full width?
Select the Group and pick Full width from the Align control in the block toolbar. If that option is missing, work up the tree, because the answer is almost always a parent:
- Open List View and check whether the Group sits inside another Group, a Row or a Column. Wide and full alignment only appear when the parent is a constrained container with “Inner blocks use content width” on.
- If the Group is at the top level of a page, check the template. In block themes the Post Content block in the Page template has its own layout; if it is not constrained, its children cannot go full width.
- Check the theme. A classic theme needs
add_theme_support( 'align-wide' )for wide and full options; a block theme needs content and wide sizes intheme.json. - Check for a plugin or theme that removes alignment controls, then retest with a default theme such as Twenty Twenty-Five.
A full-width Group usually gets padding from the theme’s root padding setting, so its background reaches the screen edge while the text inside stays clear of it. If your text touches the edges on phones, give the Group its own left and right padding in Dimensions.
Common mistakes people report
These come from real threads on the WordPress.org forums, WordPress Core Trac and the Gutenberg GitHub repository. We paraphrased them and checked each one on 18 November 2026.
- No Wide option on a nested Group. A user building a pattern found no Align option on their Group, and once it was nested and set to wide, it still rendered at 620px on the page. The volunteer pointed them at the parent’s “Inner blocks use content width” toggle, which decides whether nested blocks can go wide at all. (WordPress.org support, July 2024)
- Full width missing inside a Row. A Twenty Twenty-Five user could not make an image full width inside a Group or Row. They found the cause in a parent Group in the page template, and fixed it by changing the inner Row to a Group and setting the right container to wide. (WordPress.org support, May 2026)
- Full width option disappearing site-wide. Another user suddenly had only “None” and “Wide Width” on all Groups. Disabling plugins did not help; the toggle above was the first suggestion, which shows how often the parent container is the culprit before the theme. (WordPress.org support, August 2023)
- Rows that will not wrap. After WordPress 6.1 a user reported a broken Row block, and the triage comment found a generated
flex-wrap: nowraprule on the container overriding the wrap style. Remember that the Row variation is created withnowrapon purpose, so a Row with many items needs “Allow to wrap to multiple lines”. (Core Trac #57007 via the wp-trac list, November 2022) - Theme CSS breaking Row layout. Twenty Twenty-One had its own Group block styles. Once core moved Row styling to the lower-specificity
.is-layout-flexclass, the theme rules won and the Row lostdisplay: flex, so its items stacked. Older or custom themes with broad.wp-block-groupstyles can still do this. (Core Trac #56226 via the wp-trac list, July 2022) - Two main landmarks. Setting a content Group to
<main>when the template already has one produces invalid HTML and confuses screen readers. (Gutenberg issue #35354, October 2021)
Can I lock or limit what goes inside a Group?
Yes. The Group has a templateLock attribute that accepts all, insert, contentOnly or false, and it supports an allowedBlocks list. Editors can use the lock control in the block toolbar to stop a Group being moved or removed. Theme and pattern authors can set the attributes in markup:
<!-- Checked on 18 Nov 2026: a pattern section editors can fill but not restructure -->
<!-- wp:group {"templateLock":"contentOnly","layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- inner blocks --></div>
<!-- /wp:group -->contentOnly is the useful one for client sites: editors can change text and images but cannot add, move or delete blocks inside the Group, so the design survives. We use it on homepage sections; see our guide on switching a pattern into the home page for where those sections usually live.
Does using many Group blocks slow down a site?
Not in any way you will notice from the wrappers themselves. Each Group adds one HTML element. Layouts with a non-default setting also get a small piece of generated CSS for their wp-container- class. A page with a few dozen Groups adds a few kilobytes at most.
What does cost something is what you put inside: large background images, video in Cover blocks, and Query Loops. Deep nesting (a Group in a Group in a Group, six levels down) is more of an editing problem than a speed problem. It makes the List View hard to read and the canvas hard to click. If you need more than three levels, a Grid or Stack can usually replace two of them.
How do I style a Group block with custom CSS?
First try the built-in controls and global Styles. If you need more, add a class in Advanced > Additional CSS class(es) and target that class, rather than the generated wp-container- classes, which change between page loads and versions. Checked on 18 Nov 2026:
/* Card style for any Group given the class "is-card" */
.wp-block-group.is-card {
border-radius: 12px;
box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
}
/* Let a Row wrap on phones even if wrapping was left off */
@media (max-width: 600px) {
.wp-block-group.is-layout-flex.is-nowrap.can-wrap {
flex-wrap: wrap;
}
}In a block theme you can also style every Group at once from theme.json under styles.blocks["core/group"]. The core blocks reference lists the supports each block accepts.
Frequently asked questions
Can I nest Group blocks?
Yes, as deep as you like. A common setup is a full-width Group for the background with a constrained Group inside for the content, though one constrained Group with “Inner blocks use content width” on usually does both jobs.
What is the difference between Row and Stack?
Both are the Group block with a flex layout. Row lays items out horizontally and does not wrap unless you allow it. Stack lays them out vertically. You can switch between them at any time from the Transform menu or the Orientation control.
Is a Group block the same as a reusable block?
No. A Group is a container on one page. A synced pattern (called a reusable block before WordPress 6.3) is saved once and shared across pages. You often make a synced pattern out of a Group, which is why they get confused.
Why can I not see the Group block in my editor?
It is a core block, so it is always registered, but a site owner, theme or plugin can hide blocks from the inserter. Check Preferences > Blocks in the editor’s Options menu, where hidden blocks can be switched back on.
Where can I learn more?
The Group block documentation and Layout settings overview on WordPress.org cover the controls, and the free Learn WordPress lesson Designing with the Group block walks through real layouts. For more section ideas built from Groups, see ways to highlight your services with Gutenberg.
Our take
Treat the Group block as four tools that share one name. Reach for Group when you want a section at content width, Row for a line of items, Stack for an even column of items, and Grid for anything that should reflow by itself. Set the HTML element for real sections, turn on wrapping for long Rows, and check the parent container first whenever a width option goes missing.
Plugins we build and run
We maintain these ourselves, which is why we can support them on your site.
- BuddyNextThe self-hosted community engine for WordPress
- BuddyXFree community theme, Pro when you outgrow it
- ReignPremium community theme. Add pieces, build anything
- JetonomyCommunity forum and Q&A for WordPress
- EventonomyEvents and RSVPs for WordPress communities
- LearnomyCourses and learning communities on WordPress
- ListoraDirectories and listings your members can browse
- SnipShareCode sharing built for developer communities
- WB Ad ManagerAd placements that turn traffic into revenue
- WP Career BoardA job board your community actually uses
- WP Sell ServicesSell services with offers, orders, and payouts
- MediaVersePhotos, video, and media albums for members
- WB GamificationPoints, badges, and rewards that keep members active
- Product RoadmapPublic roadmaps with voting your users trust
Related Posts

LiteSpeed Cache Vulnerability CVE-2026-93389: Check Your Version and What Was Exposed

Freemius SDK Stored XSS: How to Find Every Bundled Copy on a Client Site (Anything Under 2.13.5)
