Topics

On this page

Last updated on Apr 14, 2025

Designing layouts in WordPress Block Editor

Designing layouts for Gutenberg-based themes can be make-or-break. It is important to know the built-in layout blocks to aid your design thinking.

Built-in Layout Blocks

It is good to know the layout blocks which ship with the block editor. These blocks can be used to create a variety of layouts. Following are the default layout blocks which can be used in your design:

Group

The Group block is used to combine multiple blocks inside one container so that you can set container-level properties such as background color, padding, and margins. It also supports block spacing, and can be used to organize different sections.

Group in WordPress site editor
Figure 2.10

Figure 2.10 shows a group block which groups together an image and a quote. You may observe that there is a padding within the section and a background color.

Stack

The stack block can be used to align its children (inner blocks) vertically.

Stack
Figure 2.11

Figure 2.11 shows a stack with two Quote blocks.

Row

The row block is a variation of the stack block with its children aligned horizontally.

Row
Figure 2.12

Figure 2.12 shows a row with two Quote blocks.

Grid

Grid block offers fixed width columns and multiple rows arranged in a traditional grid layout with usual functionality such as column and row spanning.

Grid in WordPress site editor
Figure 2.13

Figure 2.13 shows an auto-arranged grid block without any column spanning.

Columns

The columns block can be used to display content in multiple columns. There are multiple default layout options available such as 50/50, 33/33/33, 25/50/25, etc. It is possible to set the column widths manually.

Column in WordPress full site editor
Figure 2.14

Figure 2.14 shows columns block with 33/66 layout.

Content Adaptability

Creating layouts that adapt gracefully to different content types is crucial for WordPress block themes. Let’s explore how to achieve this effectively.

Design Flexible Grids

When designing grids, consider both minimum and maximum content scenarios. Figure 2.15 shows how a three-column grid adapts when:

Grids
Figure 2.15

The key is to establish rules for:

For example, a services grid might need equal heights to maintain visual harmony, while a blog post grid could allow variable heights for content flexibility.

Using Blocks for Complex Arrangements

The combination of Group and other layout blocks offers sophisticated layout control in WordPress. Each layout block serves distinct purposes and can be nested strategically to achieve complex designs.

Group Block Combinations

Stack Block Applications

Row Block Usage

Grid Block Implementation

Cover Block Integration

Advanced Combinations

Considerations when combining blocks

When combining blocks, consider:

The key to successful complex arrangements is understanding each block’s strengths and combining them purposefully rather than arbitrarily nesting blocks.

Vertical Rhythm System

Establishing consistent vertical rhythm requires:

  1. A base spacing unit (commonly 8px or 16px)
  2. Spacing scale multiples (1x, 2x, 3x, etc.)
  3. Standard spacer blocks at common heights
  4. Consistent use of margins and padding

For example:


Credits

Authored by Danish Danish Danish Shakeel Senior Software Engineer