University of Wisconsin–Madison

Choosing a layout block

Last updated:

This guide is for users already experienced with the WordPress block editor and block fundamentals. Layout blocks include Group, Row, Stack, Grid, Column, Media & Text, and Cover. These blocks control how content is grouped and arranged on your page. Use this guide to find the right one for what you’re trying to build.

Always start with patterns

The quickest way to build layouts is by using a UW Theme pattern. Patterns are pre-made layouts that already combine the right blocks with recommended spacing, color, and accessibility settings. Use layout blocks only when you need something custom or when modifying an existing pattern.


Group block

Use when you need to hold multiple blocks together as one unit so you can build a page section, add a background color, spacing, and move everything at once.

Screenshot of a Group block in the WordPress editor with a light gray background containing a Heading block labeled "Post list without featured images" and a Query Loop block displaying three news article listings with titles, dates, and excerpt text.

Row and Stack blocks

Use Row when you need a small number of items sitting on one line together, like an icon next to text. Row sizes items automatically so you cannot set fixed column widths.

Use Stack when you need items arranged vertically with consistent spacing and alignment. For example centering an image, heading, and button together inside a card all at once.

Diagram showing two block editor examples side by side. On the left, a Row block contains a Social Icon block and a Paragraph block placed on one horizontal line, showing an email icon next to the text "Email us." On the right, a Stack block contains an image, heading, paragraph, and button all center aligned inside a card.

Grid block

Use when you need a repeated layout that flows across multiple rows, like a grid of cards with equal height and width. Grid also lets you resize individual items so some can be wider or taller than others.

Screenshot of a Grid block in the WordPress editor containing six cards arranged in two rows of three. Each card is built with a Stack block and contains an optional label in red, a bold heading, body text, and a UW Link block. The Grid label appears in the top left corner and each card shows a Stack label.

Columns

Use when you need side-by-side columns with defined proportions like 50/50 (two columns) or 33/33/33 (three columns). On mobile, columns stack top to bottom in the order they appear on desktop.

If you need images to always stack above text on mobile, use the Media & Text block instead.

Screenshot of a Columns block in the WordPress editor showing three equal columns on a red background. Column 1 contains a "Programs" heading with a list of links. Column 2 contains a "Resources" heading with a list of links. Column 3 contains a "Connect" heading with body text, social media icons, and a Donate button.

Media & Text

Use when you need to pair images and text in a two-column layout where images always stack above text on mobile to preserve the reading order. This block is most commonly used for creating alternating image and text sections that create a zigzag effect.

Screenshot showing two Media & Text blocks stacked vertically. The first shows text on the left and a photo of an ice resurfacing machine on the right. The second shows a photo of a nighttime outdoor event on the left and text on the right. Both blocks are outlined in blue with the Media & Text label visible.

Cover block

Use when you need to place content on top of a background image or gradient color for stronger visual treatment, like a hero image at the top of your page.

The Cover block is similar to Group because it holds content together, but it adds background image, gradient, and overlay opacity controls.

Screenshot of a Cover block in the WordPress editor showing a full-width background photo of an abstract pink and beige floral sculpture. A nested block labeled "Heading + Button" contains the heading "Make your message bold, concise, and unforgettable" and a red Call to action button overlaid on the image.