What’s new with WordPress 5.9 – Full Site Editing and Global Styles. Blocks, Patterns. APIs. UI Enhancements.

WordPress 5.9 was initially scheduled for release on December 14, 2021. Due to several open issues, the final release has been delayed and is now scheduled for January 25, 2022.

Discover how Kinsta customers are seeing up to a 200% increase in performance.

Learn more>

If you’re wondering what’s new in WordPress 5.9, the short answer is Full Site Editing (FSE).

And indeed, many 5.9 features are only available if you’re using a theme supporting Full Site Editing, such as the brand new default theme, Twenty Twenty-Two.

Twenty Twenty-Two preview, showing the text "Category: Birds" and pictures of various types of birds.
A preview of Twenty Twenty-Two, the new WordPress default theme. (Image source: WordPress.org)

With WordPress 5.9, we get to the heart of the second phase of the Gutenberg roadmap: the Customization phase, which is mostly focused on Full Site editing, Block Patterns, Block Directory, and Block-based themes.

With 5.9, which is coming out next month, we are — I would say — at the MVP, the Minimum Viable Product of this customization phase of Gutenberg.

These words from Matt Mullenweg at 2021 State of the Word best summarize the key features of the upcoming WordPress release.

The Gutenberg roadmap, showing four blocks for their four main goals for improvement: easier editing, customization, collaboration, and multilingual.
The Gutenberg roadmap. (Image source: Matt Mullenweg: 2021 State of the Word)

That said, what can you expect to see with the first WordPress release of 2022?

Let’s find out!

Global Styles: A Graphic Interface for theme.json

With the release of WordPress 5.8 in 2021, manipulating the theme.json file became the standard way for theme developers to customize editor settings and styles.

WordPress 5.9 takes things to the next level by introducing a graphic interface that allows users to customize style presets for their websites, either globally or at the block level, without writing a single line of code.

The Global Styles mechanism should significantly alter the way you’re used to customizing the appearance of your websites, as Global Styles affect several aspects of WordPress site design.

First off, the Global Styles interface replaces the Customizer and is now the only way to customize settings and styles with block themes. Similarly, complex theme option admin pages will no longer be needed. This provides a new standard way of configuring theme settings and styles and, at the same time, should streamline the theme development workflow.

With Global Styles, WordPress users gain more control over the presentation of their websites, both globally and per block type, beyond the context of individual pages or posts.

A new sidebar is now available in the site editor, at the top of which you’ll find a small preview panel and four components in the following order:


We can expect new components to be added over time.

The Global Styles sidebar open on a WordPress page that's using the Twenty Twenty-Two theme, showing typography options such as
The Global Styles sidebar with the Blockbase theme by Automattic.

Let’s take a closer look at the new interface.

Style Preview

The first element in the Global Styles sidebar is a preview panel. This panel allows you to check the result of your customizations and is particularly useful when your changes apply to elements not visible in the site editor canvas.

The following image shows three different style combinations compared:

Global Styles previews for three styles of different colors (green, yellow, and navy) shown side by side.
Global Styles previews compared.


The Typography panel is where you control the typography of your website. Of course, the controls available in this panel depend on your theme.json settings.

For example, the Twenty Twenty-One Blocks (TT1 Blocks) theme declares the following typography properties:

“settings”: {
“typography”: {
“customLineHeight”: true,
“fontSizes”: [],
“fontFamilies”: []>

The next image shows the resulting Typography settings in the Global Styles sidebar:

Typography settings in TT1 Blocks Global Styles, showing three side-by-side panels with various typography options such as font family, text size, and colors.
Typography settings in TT1 Blocks Global Styles.

Let’s dive a bit deeper and see how the TT1 Blocks theme declares fontFamilies:

“fontFamilies”: [
“fontFamily”: “-apple-system,BlinkMacSystemFont,\”Segoe UI\”,Roboto,Oxygen-Sans,Ubuntu,Cantarell,\”Helvetica Neue\”,sans-serif”,
“slug”: “system-font”,
“name”: “System Font”
“fontFamily”: “Helvetica Neue, Helvetica, Arial, sans-serif”,
“slug”: “helvetica-arial”
“fontFamily”: “Geneva, Tahoma, Verdana, sans-serif”,
“slug”: “geneva-verdana”
“fontFamily”: “Cambria, Georgia, serif”,
“slug”: “cambria-georgia”
“fontFamily”: “Hoefler Text, Baskerville Old Face, Garamond, Times New Roman, serif”,
“slug”: “hoefler-times-new-roman”>

You can check these font families in the Global Styles preview panel:

Six different previews of the same text ("Aa") with different font families applied.
Font families available in Twenty Twenty-One Blocks.


In the Colors section, you can view and edit color palettes and customize the color of several site elements.

Colors panel in TT1 Blocks, showing a palette of four different colors (red, navy, silver, and green).
Colors panel in Twenty Twenty-One Blocks

By clicking on those elements, you get access to a new panel where you can choose colors from three color palettes: Core, Theme, and Custom palette (read more in Default Colors, Theme Colors, and Custom Colors).

TT1 Blocks colors settings, showing various color circles for three separate palette options: Theme, Default, and Custom.
Color settings in Twenty Twenty-One Blocks

In this panel, you’ll be able to set and modify the color for the current element.

A color picker selecting a deep red color in the Global Styles panel.
Customizing link color in Global Styles.


The last group of tools is meant for layout customizations. In the global context, this is limited to the site container.

The global padding setting in the Global Styles panel, showing an alteration of the previous padding pixel size.
Layout settings in Twenty Twenty-One Blocks.


With the implementation of the Global Styles mechanism, it’s now also possible to change the appearance for specific blocks, such as Paragraph (typography and colors), Buttons (layout), and Column (colors and layout).

Note that block styles can be customized from the Global Styles interface only if the block declares support for specific functionality in the corresponding block.json file. For example, the core/post-title block currently supports the following styles:

“supports”: {
“align”: [ “wide”, “full” ],
“html”: false,
“color”: {
“gradients”: true,
“link”: true
“spacing”: {
“margin”: true
“typography”: {
“fontSize”: true,
“lineHeight”: true,
“__experimentalFontFamily”: true,
“__experimentalFontWeight”: true,
“__experimentalFontStyle”: true,
“__experimentalTextTransform”: true,
“__experimentalLetterSpacing”: true,
“__experimentalDefaultControls”: {
“fontSize”: true,
“fontAppearance”: true,
“textTransform”: true>

Since the core/post-title block supports colors, spacing, and typography, you’ll find the corresponding entries in the Global Styles settings of the Post Title block.

The following image shows typography settings, which you can easily compare with the above code:

Post Title typography settings in WordPress 5.9, showing a wide variety of options, including (among many others) Post Title (which is highlighted), Post Author, Table, Site Title, and Navigation.
Customizing Post Title typography settings

It’s worth noting that WordPress 5.9 only delivers the first implementation of the Global Styles interface. As Matias Ventura points out, we can reasonably expect further development of the new style control feature:

In the future, there will be flows built into the system allowing you to move from local styles to global — like making customizations to a button block and opting to apply them globally changes across all buttons of that type.

So we may see major improvements soon. The image below is just an example of what we might expect:

A mockup of a possible future panel for changing link state colors, including options for Resting, Hover, Focused, and Selected.
In the future, you can control the link state color. (Image source GitHub)

Additional improvements could include the ability for themes to provide alternative color palettes and multiple global style variations.

Last week I built a handful of Twenty Twenty-Two’s color + font variations into super-simple child themes. They’re really lightweight, and I love the idea of offering folks a drastically different site with one click.
https://t.co/dItIkvvhK9 pic.twitter.com/rB4CcTfW0A

— kjellr (@kjellr) November 15, 2021

Developers can dive deeper into the global styling mechanism in Global Settings & Styles (theme.json) support article. You’ll find additional examples in our introduction to the Twenty Twenty-Two default theme.

The Navigation Block

The Navigation block has been dubbed “one of the most impactful theme blocks,” and we’re not afraid to say that we agree.

The block has been in the embryonic phase for a while (see also Navigation Block Tracking Issue and Tracking Issue i2). Still, now that all pending issues and blockers listed as WordPress 5.9 must-haves have been fixed, we can finally start using one of the most powerful features merged into the core with WordPress 5.9.

Quick Overview of the Navigation Block Interface

Using the new block might be a bit confusing at first, but once you get the hang of it, you’ll appreciate its full potential.

loading=”lazy” class=”size-full wp-image-112667″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-placeholder.jpg” alt=’The Navigation block placeholder in WordPress 5.9, showing options for the navigation panel, including “Select menu”, “Add all pages”, and “Start empty”.’ width=”1382″ height=”404″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-placeholder.jpg 1382w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-placeholder-300×88.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-placeholder-1024×299.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-placeholder-768×225.jpg 768w” sizes=”(max-width: 1382px) 100vw, 1382px”>
The Navigation block placeholder

When you first add a Navigation block, the block placeholder provides three options for selecting an existing block-based menu, creating a menu with all pages, or starting fresh with an empty menu.

loading=”lazy” class=”size-full wp-image-112672″ src=”https://kinsta.com/wp-content/uploads/2021/12/select-navigation-menu.jpg” alt=”Selecting an existing navigation menu.” width=”1412″ height=”860″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/select-navigation-menu.jpg 1412w, https://kinsta.com/wp-content/uploads/2021/12/select-navigation-menu-300×183.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/select-navigation-menu-1024×624.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/select-navigation-menu-768×468.jpg 768w” sizes=”(max-width: 1412px) 100vw, 1412px”>
Selecting an existing navigation menu.

The new Navigation menu also allows you to import menus created through the Appearance Menus Screen that’s available with classic themes.

This means that if you’re transitioning from a classic theme to a block theme, you won’t have to rebuild your existing menus. You just need to pick one of your currently available “Classic Menus,” and it will be automatically converted into a block-based navigation menu.

loading=”lazy” class=”size-full wp-image-113474″ src=”https://kinsta.com/wp-content/uploads/2022/01/importing-cassic-menus.jpg” alt=”Selecting a classic menu.” width=”1352″ height=”1280″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/importing-cassic-menus.jpg 1352w, https://kinsta.com/wp-content/uploads/2022/01/importing-cassic-menus-300×284.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/importing-cassic-menus-1024×969.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/importing-cassic-menus-768×727.jpg 768w” sizes=”(max-width: 1352px) 100vw, 1352px”>
Selecting a classic menu.

You can add the Navigation block anywhere on your pages. For example, you might find it useful in long-form articles to create a table of contents, allowing users to jump to specific content sections.

loading=”lazy” class=”size-full wp-image-112673″ src=”https://kinsta.com/wp-content/uploads/2021/12/internal-links-navigation.jpg” alt=”Adding anchor links to a Navigation menu.” width=”1424″ height=”1024″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/internal-links-navigation.jpg 1424w, https://kinsta.com/wp-content/uploads/2021/12/internal-links-navigation-300×216.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/internal-links-navigation-1024×736.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/internal-links-navigation-768×552.jpg 768w” sizes=”(max-width: 1424px) 100vw, 1424px”>
Adding anchor links to a Navigation menu.

New Navigation Links are instantly added to the Navigation block by clicking on the plus () icon on the right side (see also Gutenberg 11.7 release notes), unless other types of blocks have already been added to the menu.

loading=”lazy” class=”size-full wp-image-112662″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-appender.jpg” alt=”The Navigation block appender, showing navigation links.” width=”1416″ height=”1246″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-appender.jpg 1416w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-appender-300×264.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-appender-1024×901.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-appender-768×676.jpg 768w” sizes=”(max-width: 1416px) 100vw, 1416px”>
The Navigation block appender, showing navigation links.

Clicking on the Edit button in the Navigation Link block toolbar converts a menu item to a custom link. This allows you to add, edit, reorder, and remove items individually.

loading=”lazy” class=”size-full wp-image-112674″ src=”https://kinsta.com/wp-content/uploads/2021/12/converting-navigation-menu-items.jpg” alt=”Converting a navigation menu to individual page links.” width=”1426″ height=”770″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/converting-navigation-menu-items.jpg 1426w, https://kinsta.com/wp-content/uploads/2021/12/converting-navigation-menu-items-300×162.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/converting-navigation-menu-items-1024×553.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/converting-navigation-menu-items-768×415.jpg 768w” sizes=”(max-width: 1426px) 100vw, 1426px”>
Converting a navigation menu to individual page links.

You can also transform links to blocks by clicking on the Transform button in the block toolbar. This allows you to add specific blocks directly to the navigation menu.

loading=”lazy” class=”size-full wp-image-112675″ src=”https://kinsta.com/wp-content/uploads/2021/12/transform-links-to-blocks-in-navigation-menu.jpg” alt=”Transforming navigation links to blocks.” width=”1398″ height=”700″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/transform-links-to-blocks-in-navigation-menu.jpg 1398w, https://kinsta.com/wp-content/uploads/2021/12/transform-links-to-blocks-in-navigation-menu-300×150.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/transform-links-to-blocks-in-navigation-menu-1024×513.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/transform-links-to-blocks-in-navigation-menu-768×385.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/transform-links-to-blocks-in-navigation-menu-360×180.jpg 360w” sizes=”(max-width: 1398px) 100vw, 1398px”>
Transforming navigation links to blocks.

Custom Link, Spacer, Site Logo, Home Link, Social Icons, and Search blocks are now exposed to users when adding blocks to navigation menus.

In the Settings sidebar, you’ll find a comprehensive set of options for controlling several aspects of your navigation menus.

The Layout panel includes controls for justification, orientation, and wrapping.

loading=”lazy” class=”size-full wp-image-112666″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-layout-settings.jpg” alt=”Navigation block layout settings.” width=”1688″ height=”644″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-layout-settings.jpg 1688w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-layout-settings-300×114.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-layout-settings-1024×391.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-layout-settings-768×293.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-layout-settings-1536×586.jpg 1536w” sizes=”(max-width: 1688px) 100vw, 1688px”>
Navigation block layout settings

The Navigation block also features an improved Display settings panel with an option for an always-on burger menu.

loading=”lazy” class=”size-full wp-image-112664″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-display-settings.jpg” alt=”Navigation block Display settings panel for the Navigation block.” width=”1682″ height=”1008″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-display-settings.jpg 1682w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-display-settings-300×180.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-display-settings-1024×614.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-display-settings-768×460.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-display-settings-1536×921.jpg 1536w” sizes=”(max-width: 1682px) 100vw, 1682px”>
An improved Display settings panel for the Navigation block.

You can also customize text and background colors for your menus and submenus.

loading=”lazy” class=”size-full wp-image-112663″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-color-settings.jpg” alt=”Navigation block color settings.” width=”1686″ height=”1162″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-color-settings.jpg 1686w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-color-settings-300×207.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-color-settings-1024×706.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-color-settings-768×529.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-color-settings-1536×1059.jpg 1536w” sizes=”(max-width: 1686px) 100vw, 1686px”>
Navigation block color settings.

Another helpful addition recently added to the Navigation block is the Block Gap support, which adds the ability for users to control the distance between menu items.

loading=”lazy” class=”size-full wp-image-112669″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-spacing.jpg” alt=”Navigation block spacing.” width=”1684″ height=”1114″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-spacing.jpg 1684w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-spacing-300×198.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-spacing-1024×677.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-spacing-768×508.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-spacing-1536×1016.jpg 1536w” sizes=”(max-width: 1684px) 100vw, 1684px”>
Block spacing control on the Navigation block.

The Typography panel provides a set of controls for font family, appearance, line height, decoration, and letter case. All these controls can be toggled on/off from a dropdown menu that appears when you click on the ellipsis icon on the right.

loading=”lazy” class=”size-full wp-image-112670″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-typography-settings.jpg” alt=”Navigation block typography settings.” width=”1688″ height=”964″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-typography-settings.jpg 1688w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-typography-settings-300×171.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-typography-settings-1024×585.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-typography-settings-768×439.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-typography-settings-1536×877.jpg 1536w” sizes=”(max-width: 1688px) 100vw, 1688px”>
Navigation block typography settings.

The Navigation Block: Under the Hood

Navigation block data are stored in the database using a wp_navigation dedicated post type.

Why is this interesting for WordPress users, and how does it work?

Say you’ve created a navigation menu consisting of two custom links and a search box. With the Twenty Twenty-Two theme installed, the menu could look as shown in the following image:

loading=”lazy” class=”size-full wp-image-112665″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-example.jpg” alt=”Navigation block example.” width=”1610″ height=”246″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-block-example.jpg 1610w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-example-300×46.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-example-1024×156.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-example-768×117.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/navigation-block-example-1536×235.jpg 1536w” sizes=”(max-width: 1610px) 100vw, 1610px”>
Navigation block example

The Navigation block above is stored in the database as wp_navigation post type as follows:

Storing the Navigation block content into the database enables users to use the same navigation menus across different block themes. If the menu is not immediately visible, you would just pick the desired navigation menu in the menu selector (see also issue #36087 and PR #36178).

The following image shows the above menu with the Twenty Twenty-One Blocks theme:

loading=”lazy” class=”size-full wp-image-112671″ src=”https://kinsta.com/wp-content/uploads/2021/12/navigation-menu-selector-tt1b.jpg” alt=”Select menu in Twenty Twenty-One Blocks.” width=”1158″ height=”708″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/navigation-menu-selector-tt1b.jpg 1158w, https://kinsta.com/wp-content/uploads/2021/12/navigation-menu-selector-tt1b-300×183.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/navigation-menu-selector-tt1b-1024×626.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/navigation-menu-selector-tt1b-768×470.jpg 768w” sizes=”(max-width: 1158px) 100vw, 1158px”>
Select menu in Twenty Twenty-One Blocks.

The Navigation block has gone through several iterations. You can dive deeper into each implementation in the Gutenberg 11.7, 11.8, and 11.9 release notes.

You can also read more about the Navigation block in The new Navigation block dev note and Navigation block support article.

Image Galleries, Featured Images and Site Icons

Aiming to make images behave more consistently across different contexts, WordPress 5.9 delivers new features and improvements to several blocks. The Gallery Block has been completely revised, while various changes to the Featured Image and Site Icon blocks give users more granular control over respective images.

Refactored Gallery Block

In WordPress 5.8, the ability to customize the appearance of images in galleries was somewhat limited. There was no way to change image style or apply a duotone filter.

Additionally, important features were missing from gallery images, such as adding custom links to individual images in a gallery.

To better understand the reason for this asymmetry between images in the two different contexts of a single image and an image in a gallery, let’s take a look at the Gallery block in Code view in WordPress 5.8:

loading=”lazy” class=”size-full wp-image-112457″ src=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-8.jpg” alt=”Gallery block in code view in WordPress 5.8.” width=”1896″ height=”494″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-8.jpg 1896w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-8-300×78.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-8-1024×267.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-8-768×200.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-8-1536×400.jpg 1536w” sizes=”(max-width: 1896px) 100vw, 1896px”>
Gallery block in code view in WordPress 5.8.

Note that image details are only stored in the Gallery block delimiter (see also What Is a Gutenberg Block?).

loading=”lazy” class=”size-full wp-image-112461″ src=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-8.jpg” alt=”Gallery block in WordPress 5.8.” width=”1822″ height=”778″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-8.jpg 1822w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-8-300×128.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-8-1024×437.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-8-768×328.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-8-1536×656.jpg 1536w” sizes=”(max-width: 1822px) 100vw, 1822px”>
Inspecting Gallery block in WordPress 5.8.

This made individual images behave differently from images in galleries.

To make images behave consistently in the two different contexts, WordPress 5.9 introduces a completely refactored Gallery block, which now behaves like a container for a collection of figure elements instead of an unordered list of images.

In WordPress 5.9, gallery images are nested using the core innerBlocks APIs, and each image stores its own set of details, exactly like individual images.

loading=”lazy” class=”size-full wp-image-112458″ src=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-9.jpg” alt=”Gallery block in code view in WordPress 5.9.” width=”1896″ height=”628″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-9.jpg 1896w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-9-300×99.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-9-1024×339.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-9-768×254.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-code-view-wordpress-5-9-1536×509.jpg 1536w” sizes=”(max-width: 1896px) 100vw, 1896px”>
Gallery block in code view in WordPress 5.9

That’s a great enhancement, since Gallery block images now support the same functionalities available in core Image blocks, such as image dimensions and duotone filters, as well as standard block features, such as drag-and-drop, copy, duplicate, and remove functionalities.

loading=”lazy” class=”size-full wp-image-112462″ src=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-9.jpg” alt=”Gallery block in WordPress 5.9.” width=”1604″ height=”864″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-9.jpg 1604w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-9-300×162.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-9-1024×552.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-9-768×414.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-wordpress-5-9-1536×827.jpg 1536w” sizes=”(max-width: 1604px) 100vw, 1604px”>
Inspecting Gallery block in WordPress 5.9

With the new Gallery block, you’ll be able to style images individually. This grants a wide array of customization opportunities.

The image below displays multiple pictures in a gallery, each with differently rounded corners:

loading=”lazy” class=”size-full wp-image-112459″ src=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-full-wordpress-5-9.jpg” alt=”The new Gallery block.” width=”1642″ height=”1274″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-full-wordpress-5-9.jpg 1642w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-full-wordpress-5-9-300×233.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-full-wordpress-5-9-1024×795.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-full-wordpress-5-9-768×596.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-full-wordpress-5-9-1536×1192.jpg 1536w” sizes=”(max-width: 1642px) 100vw, 1642px”>
The new Gallery block is a wrapper for individual Image blocks.

You can also use different duotone filters on different images in the same gallery.

loading=”lazy” class=”size-full wp-image-112460″ src=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-image-duotone-filters.jpg” alt=”Duotone filters applied to different images in a Gallery block.” width=”1728″ height=”1048″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/gallery-block-image-duotone-filters.jpg 1728w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-image-duotone-filters-300×182.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-image-duotone-filters-1024×621.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-image-duotone-filters-768×466.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/gallery-block-image-duotone-filters-1536×932.jpg 1536w” sizes=”(max-width: 1728px) 100vw, 1728px”>
Different duotone filters applied to different images in a Gallery block

And, of course, you can assign a specific CSS class to each image, which gives you additional superpowers for adding whatever customization you need to your gallery images.

For a closer view of the new Gallery block, see also Gallery Block Refactor Dev Note, Upcoming Gallery Block improvements, and Gutenberg 11.4 release notes.

Featured Image Enhancements

Several improvements have also been brought to the Featured Image block.

Basic Dimensions Controls

The Featured Image block now features a new Dimensions settings panel providing height, width, and scale controls.

loading=”lazy” class=”size-full wp-image-112828″ src=”https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-1.jpg” alt=”Featured Image Dimensions panel.” width=”2032″ height=”1128″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-1.jpg 2032w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-1-300×167.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-1-1024×568.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-1-768×426.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-1-1536×853.jpg 1536w” sizes=”(max-width: 2032px) 100vw, 2032px”>
Featured Image Dimensions panel.

Dimensions control also applies to featured images in Query Loop blocks, as shown in the following image:

loading=”lazy” class=”size-full wp-image-112829″ src=”https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2.jpg” alt=”Featured Image dimensions controls in a Query Loop block.” width=”2876″ height=”1202″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2.jpg 2876w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2-300×125.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2-1024×428.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2-768×321.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2-1536×642.jpg 1536w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-dimensions-control-2-2048×856.jpg 2048w” sizes=”(max-width: 2876px) 100vw, 2876px”>
Featured Image dimensions in a Query Loop block.

Duotone Filters on Featured Images

We mentioned above that we can now apply the duotone filter in images wrapped in the new refactored Gallery block.

Now, starting with WordPress 5.9, duotone filters are also available in Featured Image blocks in any context, from post and page templates to Query Loop blocks.

loading=”lazy” class=”size-full wp-image-112830″ src=”https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter.jpg” alt=”Duotone filter on featured images in a Query Loop block.” width=”2110″ height=”1042″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter.jpg 2110w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter-300×148.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter-1024×506.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter-768×379.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter-1536×759.jpg 1536w, https://kinsta.com/wp-content/uploads/2022/01/featured-image-duotone-filter-2048×1011.jpg 2048w” sizes=”(max-width: 2110px) 100vw, 2110px”>
Duotone filter on featured images in a Query Loop block.

This feature opens the door to creative and consistent color combinations throughout the site.

Before WordPress 5.9 (and Gutenberg 11.6), logo images could only be edited before being uploaded. With WordPress 5.9, you can crop, zoom and rotate images used in the Site Logo block directly from the block toolbar.

loading=”lazy” class=”size-full wp-image-112831″ src=”https://kinsta.com/wp-content/uploads/2022/01/editing-logo-image.jpg” alt=”Editing Site Logo image.” width=”1258″ height=”1272″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/editing-logo-image.jpg 1258w, https://kinsta.com/wp-content/uploads/2022/01/editing-logo-image-297×300.jpg 297w, https://kinsta.com/wp-content/uploads/2022/01/editing-logo-image-1013×1024.jpg 1013w, https://kinsta.com/wp-content/uploads/2022/01/editing-logo-image-768×777.jpg 768w” sizes=”(max-width: 1258px) 100vw, 1258px”>
Editing Site Logo image.

New Design Tools, Blocks, and UI Enhancements

Eleven Gutenberg versions get merged into the core with WordPress 5.9, delivering so many features, enhancements, and bug fixes that it wouldn’t be possible to cover them all in a single article.

So we picked some of those that we found most worthy of attention. For a deeper overview of those features and improvements, you may also want to check the release posts for Gutenberg 10.8, 10.9, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5, 11.6, 11.7, 11.8, and 11.9.

With that said, this section will cover the following changes:

Border Supports UI

Starting with WordPress 5.9, when the theme.json declares border settings and a block declares border support via the Block Supports API, a new settings panel will provide controls for border radius, width, style, color, and units (see also Gutenberg 11.1).

Sign Up For the Newsletter

Want to know how we increased our traffic over 1000%?

Join 20,000+ others who get our weekly newsletter with insider WordPress tips!

Subscribe Now

The core Group block is a good example of this useful UI enhancement. The block.json file of the Group block now includes the following supports declarations:


“supports”: {
“align”: [ “wide”, “full” ],
“anchor”: true,
“html”: false,
“color”: {
“gradients”: true,
“link”: true
“spacing”: {
“padding”: true,
“__experimentalDefaultControls”: {
“padding”: true
“__experimentalBorder”: {
“color”: true,
“radius”: true,
“style”: true,
“width”: true,
“__experimentalDefaultControls”: {
“color”: true,
“radius”: true,
“style”: true,
“width”: true>

This feature allows users to create awesome graphic effects on their websites with minimal effort. You can see it in action with the new Twenty Twenty-Two theme.

In a new post or page, create a new Group block and select it. You’ll see a Border panel in the block settings sidebar. Change the border width and style as needed and enjoy the result.

loading=”lazy” class=”size-full wp-image-112693″ src=”https://kinsta.com/wp-content/uploads/2022/01/border-controls.jpg” alt=”A Group block with a custom border configuration with Twenty Twenty-Two.” width=”1868″ height=”1222″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/border-controls.jpg 1868w, https://kinsta.com/wp-content/uploads/2022/01/border-controls-300×196.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/border-controls-1024×670.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/border-controls-768×502.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/border-controls-1536×1005.jpg 1536w” sizes=”(max-width: 1868px) 100vw, 1868px”>
A Group block with a custom border configuration with Twenty Twenty-Two.

If you’re a theme developer and want to add this feature to your themes, open your theme.json file and declare border support as shown in the following code:

“version”: 1,
“settings”: {
“border”: {
“customColor”: true,
“customRadius”: true,
“customStyle”: true,
“customWidth”: true>

Save the file and get back to your WordPress dashboard. In a new post or page, create a new Group block and select it. You should now see a Border panel in the block settings sidebar (see also this experimental theme.json).

List View Improvements

With WordPress 5.9, the List View has been improved and now features drag and drop, collapsible sections, and HTML anchors.

Drag and Drop in List View

As mentioned in pull request #33320, drag-and-drop has been implemented in the List View but was disabled due to performance issues.

Starting with WordPress 5.9, drag-and-drop in List View has been re-implemented. You can again drag and drop blocks and groups of blocks anywhere in the List View. This is a great enhancement in the editor’s usability, as it allows you to quickly and easily move blocks and groups of blocks around your pages. It’s instrumental in long-form articles and pages, and managing complex structures of nested blocks.

loading=”lazy” class=”size-full wp-image-112560″ src=”https://kinsta.com/wp-content/uploads/2021/12/drag-and-drop-in-list-view.jpg” alt=”Drag and drop in List View.” width=”1994″ height=”1180″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/drag-and-drop-in-list-view.jpg 1994w, https://kinsta.com/wp-content/uploads/2021/12/drag-and-drop-in-list-view-300×178.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/drag-and-drop-in-list-view-1024×606.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/drag-and-drop-in-list-view-768×454.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/drag-and-drop-in-list-view-1536×909.jpg 1536w” sizes=”(max-width: 1994px) 100vw, 1994px”>
Drag and drop in List View.

List View Collapsible Sections

Another significant improvement to the List View is the ability to expand/collapse sections of nested blocks. This allows you to easily navigate complex block structures, expanding single groups of blocks while leaving all the rest collapsed.

You can also expand and collapse List View sections using left and right arrows.

loading=”lazy” class=”size-full wp-image-112561″ src=”https://kinsta.com/wp-content/uploads/2021/12/group-block-expanded.jpg” alt=”An expanded group of blocks .” width=”1996″ height=”1102″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/group-block-expanded.jpg 1996w, https://kinsta.com/wp-content/uploads/2021/12/group-block-expanded-300×166.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/group-block-expanded-1024×565.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/group-block-expanded-768×424.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/group-block-expanded-1536×848.jpg 1536w” sizes=”(max-width: 1996px) 100vw, 1996px”>
An expanded group of blocks.

HTML Anchors on List View Items

Yet another helpful enhancement is the ability to add HTML anchors to your blocks in List View and see them at a glance.

loading=”lazy” class=”size-full wp-image-112562″ src=”https://kinsta.com/wp-content/uploads/2021/12/html-anchors-list-view.jpg” alt=”HTML anchors in List View.” width=”1997″ height=”1112″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/html-anchors-list-view.jpg 1997w, https://kinsta.com/wp-content/uploads/2021/12/html-anchors-list-view-300×167.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/html-anchors-list-view-1024×570.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/html-anchors-list-view-768×428.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/html-anchors-list-view-1536×855.jpg 1536w” sizes=”(max-width: 1997px) 100vw, 1997px”>
HTML anchors in List View.

Block Gap Spacing Control

First introduced in Gutenberg 11.4 and now merged into the core with WordPress 5.9, the new Block Spacing control allows you to set a custom distance between items within a block. Below, you can see a preview with different block spacing values in a Columns block with the Twenty Twenty-Two default theme:

loading=”lazy” class=”size-full wp-image-113303″ src=”https://kinsta.com/wp-content/uploads/2022/01/block-spacing-90.jpg” alt=”Controlling Columns Block spacing in WordPress 5.9.” width=”1966″ height=”1166″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/block-spacing-90.jpg 1966w, https://kinsta.com/wp-content/uploads/2022/01/block-spacing-90-300×178.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/block-spacing-90-1024×607.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/block-spacing-90-768×455.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/block-spacing-90-1536×911.jpg 1536w” sizes=”(max-width: 1966px) 100vw, 1966px”>
Controlling Columns Block spacing in WordPress 5.9.

Gap Spacing will be initially available for specific blocks, including buttons, images, columns, titles, and navigation, but support should be extended to more blocks in the future.

Themes should enable Gap Spacing in theme.json using the new appearanceTools property. You can read more about appearance tools in our deep dive into Twenty Twenty-Two. See also pull requests #33991 and #34630.

Rich URL Preview for Link Control

By taking advantage of the new REST url-details endpoint, the Link control now provides a rich URL preview showing details for a link target resource.

loading=”lazy” class=”size-full wp-image-112702″ src=”https://kinsta.com/wp-content/uploads/2022/01/rich-url-preview.jpg” alt=”Rich URL preview in the post editor.” width=”1390″ height=”1002″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/rich-url-preview.jpg 1390w, https://kinsta.com/wp-content/uploads/2022/01/rich-url-preview-300×216.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/rich-url-preview-1024×738.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/rich-url-preview-768×554.jpg 768w” sizes=”(max-width: 1390px) 100vw, 1390px”>
Rich URL preview in the post editor.

In its first implementation, this feature was only available in the Post Editor richtext component. At the time of this writing, it’s also available in the Site Editor, but not in Navigation and Widget editors.

Create Pages from Link Popup

WordPress 5.9 also features an improved inline link UI, showing a brand new button to create new pages directly from the inline link popup. This feature is only available within the Post Editor.

loading=”lazy” class=”size-full wp-image-113304″ src=”https://kinsta.com/wp-content/uploads/2022/01/create-pages-from-link-popup.jpg” alt=”Create pages from link popup.” width=”1332″ height=”1100″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/create-pages-from-link-popup.jpg 1332w, https://kinsta.com/wp-content/uploads/2022/01/create-pages-from-link-popup-300×248.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/create-pages-from-link-popup-1024×846.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/create-pages-from-link-popup-768×634.jpg 768w” sizes=”(max-width: 1332px) 100vw, 1332px”>
WordPress 5.9 features a new inline link UI.

Improvements to the Search Block

The Search Block now shows up button and border color settings.

loading=”lazy” class=”size-full wp-image-113295″ src=”https://kinsta.com/wp-content/uploads/2022/01/search-block-color-settings.jpg” alt=”Search Block Color settings.” width=”2032″ height=”1068″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/search-block-color-settings.jpg 2032w, https://kinsta.com/wp-content/uploads/2022/01/search-block-color-settings-300×158.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/search-block-color-settings-1024×538.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/search-block-color-settings-768×404.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/search-block-color-settings-1536×807.jpg 1536w” sizes=”(max-width: 2032px) 100vw, 2032px”>
Search Block Color settings.

You can also now customize background and text color and border color and radius.

loading=”lazy” class=”size-full wp-image-113294″ src=”https://kinsta.com/wp-content/uploads/2022/01/search-block-border-settings.jpg” alt=”Search Block border color and radius settings.” width=”2028″ height=”1100″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/search-block-border-settings.jpg 2028w, https://kinsta.com/wp-content/uploads/2022/01/search-block-border-settings-300×163.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/search-block-border-settings-1024×555.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/search-block-border-settings-768×417.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/search-block-border-settings-1536×833.jpg 1536w” sizes=”(max-width: 2028px) 100vw, 2028px”>
Search Block border color and radius settings.

New Controls for Block Dimensions

A new Dimensions settings panel is now available for users to control the space occupied by a block on the page. The panel should include height, width, padding, margin, and possibly alignment controls, but not all attributes will be available for every block.

loading=”lazy” class=”size-full wp-image-113296″ src=”https://kinsta.com/wp-content/uploads/2022/01/dimensions-panel-group-block.jpg” alt=”Group block dimensions panel.” width=”2026″ height=”616″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/dimensions-panel-group-block.jpg 2026w, https://kinsta.com/wp-content/uploads/2022/01/dimensions-panel-group-block-300×91.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/dimensions-panel-group-block-1024×311.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/dimensions-panel-group-block-768×234.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/dimensions-panel-group-block-1536×467.jpg 1536w” sizes=”(max-width: 2026px) 100vw, 2026px”>
Padding control for a Group block in WordPress 5.9.

Block developers will find the component documented on GitHub, but note that it’s still marked as an experimental feature and could be subject to breaking changes at the time of this writing.

New Widget Group Block Added to the Widgets Screen

A new Widget Group block is now available in the block-based widgets editor. The latest block allows you to add a group of blocks in a widget with a title in the classic themes’ Widgets Editor and the Customizer.

loading=”lazy” class=”size-full wp-image-113297″ src=”https://kinsta.com/wp-content/uploads/2022/01/widget-group-block.jpg” alt=”Widget Group block in the Twenty Twenty-One theme.” width=”1398″ height=”1122″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/widget-group-block.jpg 1398w, https://kinsta.com/wp-content/uploads/2022/01/widget-group-block-300×241.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/widget-group-block-1024×822.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/widget-group-block-768×616.jpg 768w” sizes=”(max-width: 1398px) 100vw, 1398px”>
Widget Group block in the Twenty Twenty-One theme.

You can read more about the widgets editor in Block-Based Widgets Editor and Block Widgets in the Customizer.

Flex Layout and the New Row Block

Originally introduced as an experimental feature with Gutenberg 11.2, flex layout has been extended to several blocks, including Social Links and Group blocks.

Need blazing-fast, reliable, and fully secure hosting for your WordPress site? Kinsta provides all of this and 24/7 world-class support from WordPress experts. Check out our plans

Some blocks, such as the Social Links block, now provide a set of toolbar controls and sidebar settings that allow you to customize the flex layout.

loading=”lazy” class=”size-full wp-image-112704″ src=”https://kinsta.com/wp-content/uploads/2022/01/social-links-layout-controls.jpg” alt=”Layout controls in the Social Links block toolbar.” width=”1358″ height=”524″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/social-links-layout-controls.jpg 1358w, https://kinsta.com/wp-content/uploads/2022/01/social-links-layout-controls-300×116.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/social-links-layout-controls-1024×395.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/social-links-layout-controls-768×296.jpg 768w” sizes=”(max-width: 1358px) 100vw, 1358px”>
Layout controls in the Social Links block toolbar.

This same functionality is available in the Navigation block and Row block, a new variation of the Group block introduced with Gutenberg 11.5.

The following image shows the Row block with layout controls in the settings sidebar:

loading=”lazy” class=”size-full wp-image-112706″ src=”https://kinsta.com/wp-content/uploads/2022/01/row-block-with-layout-settings.jpg” alt=”The new Row block with Layout settings.” width=”2046″ height=”772″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/row-block-with-layout-settings.jpg 2046w, https://kinsta.com/wp-content/uploads/2022/01/row-block-with-layout-settings-300×113.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/row-block-with-layout-settings-1024×386.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/row-block-with-layout-settings-768×290.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/row-block-with-layout-settings-1536×580.jpg 1536w” sizes=”(max-width: 2046px) 100vw, 2046px”>
The new Row block with Layout settings.

Below, you can see the same Row block on the frontend and in Chrome’s inspector tool.

loading=”lazy” class=”size-full wp-image-112705″ src=”https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props.jpg” alt=”A Row block in Chrome inspector tool.” width=”2460″ height=”880″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props.jpg 2460w, https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props-300×107.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props-1024×366.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props-768×275.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props-1536×549.jpg 1536w, https://kinsta.com/wp-content/uploads/2022/01/row-block-flex-props-2048×733.jpg 2048w” sizes=”(max-width: 2460px) 100vw, 2460px”>
A Row block in the Chrome inspector tool.

Block Pattern Enhancements

First introduced with WordPress 5.5, block patterns allow WordPress users to include complex ready-to-use structures of nested blocks into their content with just a few clicks.

Now, WordPress 5.9 moves things a step forward toward design democratization & user empowerment by introducing a couple of enhancements to the block pattern system.

So, what’s new with block patterns in WordPress 5.9?

Featured Patterns from the Pattern Directory

The Block Inserter now displays Featured Block Patterns dynamically retrieved from the Pattern Directory, providing users a quick and easy way to find popular patterns to use in their content.

loading=”lazy” class=”size-full wp-image-112574″ src=”https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2.jpg” alt=”Buttons block patterns in WordPress 5.9.” width=”2160″ height=”1308″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2.jpg 2160w, https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2-300×182.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2-1024×620.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2-768×465.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2-1536×930.jpg 1536w, https://kinsta.com/wp-content/uploads/2021/12/buttons-patterns-wp-59-tt2-2048×1240.jpg 2048w” sizes=”(max-width: 2160px) 100vw, 2160px”>
Buttons block patterns in WordPress 5.9.

By the same token, as patterns get directly into the WordPress dashboard, WordPress developers should be encouraged to create and publish more and more patterns over time, resulting in increasingly advanced design capabilities for users.

New Fullscreen Pattern Explorer

As the number of block patterns available in the Pattern Directory continues to grow and more themes use them, WordPress 5.9 introduces a new block pattern navigation interface: the Pattern Explorer.

loading=”lazy” class=”size-full wp-image-112575″ src=”https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal.jpg” alt=”Fullscreen pattern modal in WordPress 5.9.” width=”2158″ height=”1300″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal.jpg 2158w, https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal-300×181.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal-1024×617.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal-768×463.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal-1536×925.jpg 1536w, https://kinsta.com/wp-content/uploads/2021/12/fullscreen-pattern-modal-2048×1234.jpg 2048w” sizes=”(max-width: 2158px) 100vw, 2158px”>
Fullscreen pattern modal in WordPress 5.9.

A new Explore button now opens a full-screen modal that allows users to browse, search for, and insert block patterns with just a few clicks. The result is an improved user experience.

loading=”lazy” class=”size-full wp-image-112576″ src=”https://kinsta.com/wp-content/uploads/2021/12/featured-block-patterns.jpg” alt=”Featured block patterns in the block inserter.” width=”1996″ height=”1132″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/featured-block-patterns.jpg 1996w, https://kinsta.com/wp-content/uploads/2021/12/featured-block-patterns-300×170.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/featured-block-patterns-1024×581.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/featured-block-patterns-768×436.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/featured-block-patterns-1536×871.jpg 1536w” sizes=”(max-width: 1996px) 100vw, 1996px”>
Featured block patterns in the block inserter.

You’ll also find additional notes and several block pattern examples in our deep dive into the Twenty Twenty-Two WordPress theme.

If you are interested and want to learn more, listen to Josepha Haden Chomphosy’s podcast Episode 16 and 21, and watch the Exploring WordPress 5.9 YouTube video from Anne McCarthy.

The Twenty Twenty-Two Theme and WordPress Block Themes

With WordPress 5.9, you’ll no longer need to install the Gutenberg plugin to enable Full Site Editing on your WordPress website. You’ll just need to allow a block theme to take advantage of all FSE features.

In addition, WordPress 5.9 has been bundled with a brand new default theme, Twenty Twenty-Two, and it’s a game-changer as Twenty Twenty-Two is the first default block theme ever.

Twenty Twenty-Two is a highly flexible and customizable theme. It provides a perfect sandbox to try out the new template editing flow, new blocks, interface enhancements, and all site editing features added to the core, starting with WordPress 5.9.

loading=”lazy” class=”size-full wp-image-110731″ src=”https://kinsta.com/wp-content/uploads/2021/12/tt2.jpg” alt=”Twenty Twenty-Two preview.” width=”2560″ height=”1752″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/tt2.jpg 2560w, https://kinsta.com/wp-content/uploads/2021/12/tt2-300×205.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/tt2-1024×701.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/tt2-768×526.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/tt2-1536×1051.jpg 1536w, https://kinsta.com/wp-content/uploads/2021/12/tt2-2048×1402.jpg 2048w” sizes=”(max-width: 2560px) 100vw, 2560px”>
Twenty Twenty-Two is the new WordPress default theme. (Image source: WordPress.org)

As mentioned above, all you need to do is install and activate a block theme, such as Twenty Twenty-Two. Once the theme is active, a new Editor (beta) menu item will appear in the WordPress dashboard admin menu.

loading=”lazy” class=”size-full wp-image-113422″ src=”https://kinsta.com/wp-content/uploads/2022/01/wp-59-appearance-menu.jpg” alt=”The new Appearance Menu in WordPress 5.9.” width=”2002″ height=”830″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/wp-59-appearance-menu.jpg 2002w, https://kinsta.com/wp-content/uploads/2022/01/wp-59-appearance-menu-300×124.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/wp-59-appearance-menu-1024×425.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/wp-59-appearance-menu-768×318.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/wp-59-appearance-menu-1536×637.jpg 1536w” sizes=”(max-width: 2002px) 100vw, 2002px”>
The new Appearance Menu in WordPress 5.9.

The Site Editor interface now features a revamped Site Editing Flow. From the editing interface, you’ll be able to visually edit the site’s homepage, templates, and template parts, as well as access the Global Styles interface.

loading=”lazy” class=”size-full wp-image-110741″ src=”https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu.jpg” alt=”The Editor navigation menu.” width=”2318″ height=”1046″ srcset=”https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu.jpg 2318w, https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu-300×135.jpg 300w, https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu-1024×462.jpg 1024w, https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu-768×347.jpg 768w, https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu-1536×693.jpg 1536w, https://kinsta.com/wp-content/uploads/2021/12/editor-navigation-menu-2048×924.jpg 2048w” sizes=”(max-width: 2318px) 100vw, 2318px”>
The Editor navigation menu.

When you activate a block theme, you won’t find the Customizer. That’s because the Customizer doesn’t support block themes, which only use the Site Editor. That’s also the reason why you can’t preview inactive block themes.

loading=”lazy” class=”size-full wp-image-113429″ src=”https://kinsta.com/wp-content/uploads/2022/01/live-preview-not-available.jpg” alt=”The Live Preview is not available with block themes.” width=”1650″ height=”1268″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/live-preview-not-available.jpg 1650w, https://kinsta.com/wp-content/uploads/2022/01/live-preview-not-available-300×231.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/live-preview-not-available-1024×787.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/live-preview-not-available-768×590.jpg 768w, https://kinsta.com/wp-content/uploads/2022/01/live-preview-not-available-1536×1180.jpg 1536w” sizes=”(max-width: 1650px) 100vw, 1650px”>
The Live Preview is not available with block themes.

So, as of WordPress 5.9, the access point to the Customizer is no longer available in the admin menu when a block theme is active (unless you’re using a plugin that makes use of it).

If you’re still tied to traditional themes and are worried about backward compatibility, rest easy: You can continue using your theme.

You currently have four different categories of themes to choose from:

Block themes: Themes designed for FSEUniversal themes: Themes that work with both the Customizer and the Site EditorHybrid themes: Classic themes supporting FSE features like theme.jsonClassic themes: Themes with PHP templates, functions.php, etc.

Due to the impact that block themes will likely have on the WordPress ecosystem, we have an entire article covering Twenty Twenty-Two and WordPress block themes. Be sure to check it out for a more in-depth overview.

Performance Improvements

Here at Kinsta, we’re obsessed with website speed. That’s why we’re excited about the performance improvements coming with WordPress 5.9.

These improvements will affect several areas of the CMS, from the block editor to block themes, lazy loading, and more. Let’s dive in.

Block Inserter Enhancements

Since WordPress 5.9, block types, patterns, and categories are lazily rendered in the Block Inserter. The browser loads higher priority content first, giving the user a smoother editing experience and improved performance.

Further notable performance enhancements in the context of the block editor affect reusable blocks and List View.

Less CSS Loaded

As for the frontend, WordPress 5.9 drastically cut the amount of the CSS loaded by block themes, leading to pages loading significantly faster.

The main improvement that should be noted in this context is the introduction of the theme.json settings and styles mechanism, which prevents themes from using massive stylesheets, including hundreds of CSS declarations. The amount of CSS code a theme uses has now been reduced to a few CSS custom properties that any block type can reuse.

Lazy Loading Performance Improvements

Image lazy loading was first introduced in WordPress 5.5. Starting from WordPress 5.7, the lazy loading functionality was extended to iframes, allowing site owners to build faster websites and improve their SEO.

Anyway, following an analysis of the Largest Contentful Paint (LCP), it turned out that assigning the loading=”lazy” attribute to all images and iframes on the page causes slight performance degradation.

Simply skipping the loading=”lazy” attribute was not a solution because doing so would lead to losing the clear advantages of lazy loading.

The optimal solution would be to only omit the loading=”lazy” attribute on images appearing above the fold. However, since the loading=”lazy” attribute is assigned on the server-side, WordPress can’t determine which images are displayed above the fold exactly. It’s something that mostly depends on the active theme.

Now, as a trade-off solution, starting with WordPress 5.9, the loading=”lazy” attribute is not applied to the first content image or iframe. An analysis conducted on 50 popular WordPress themes found that this solution leads to considerable performance improvements and pages loading up to 30% faster.

Felix Arntz explains how it works:

… to improve the performance out-of-the-box without requiring a developer to customize the behavior, WordPress will now skip the very first “content image or iframe” on the page from being lazy-loaded. The term “content image or iframe” here denotes any image or iframe that is found within the content of any post in the current main query loop as well as any featured image of such a post. This applies to both “singular” and “archive” content: In a “singular” context the first image or iframe of the (only) post is not lazy-loaded, while in an “archive” context the first image or iframe of the first post in the query is not lazy-loaded.

Theme developers can now use the new wp_omit_loading_attr_threshold filter to change the number of images/iframes to be skipped from lazy loading.

Multiple Stylesheets Per Block

Blocks and theme developers can register multiple stylesheets on each block and load styles from other blocks when needed. This enables loading stylesheets depending on the page content, preventing themes from loading huge stylesheets on every page.

According to Ari Stathopoulos:

Blocks will now be able to register multiple stylesheets, and load styles from other blocks when needed. Themes will be able to add styles on a per-block basis instead of loading monolithic stylesheets that are force-loaded anywhere. This has a greater impact on block themes where stylesheets loading is optimized based on the page & layout contents, but can also be used by classic themes.

dditional Features for Developers

In addition to the many features and UI enhancements discussed so far, WordPress 5.9 also introduces several features for developers.


If you’re new to WordPress block development, make sure to check our Definitive Block Development Tutorial

New Attribute to Lock Blocks

Block developers can now prevent users from moving or deleting individual blocks by adding a lock attribute in block settings:


“attributes”: {
“lock”: {
“type”: “object”,
“default”: {
“move”: true,
“remove”: true>

With this feature enabled, users can edit the block content, but cannot move the block around on the page or remove it from the editor canvas. The following image shows a custom block with a standard set of toolbar controls:

loading=”lazy” class=”size-full wp-image-112708″ src=”https://kinsta.com/wp-content/uploads/2022/01/custom-block-with-regular-toolbar.jpg” alt=”Custom block with a regular toolbar.” width=”1288″ height=”946″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/custom-block-with-regular-toolbar.jpg 1288w, https://kinsta.com/wp-content/uploads/2022/01/custom-block-with-regular-toolbar-300×220.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/custom-block-with-regular-toolbar-1024×752.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/custom-block-with-regular-toolbar-768×564.jpg 768w” sizes=”(max-width: 1288px) 100vw, 1288px”>
A custom block with a regular toolbar

Defining the lock attribute, as seen in the code above, hides the block movers and the Move to and Remove controls from the block toolbar. The image below shows the final result on the screen:

loading=”lazy” class=”size-full wp-image-112709″ src=”https://kinsta.com/wp-content/uploads/2022/01/custom-block-without-move-and-remove-controls.jpg” alt=”A custom block without move and remove controls.” width=”1284″ height=”762″ srcset=”https://kinsta.com/wp-content/uploads/2022/01/custom-block-without-move-and-remove-controls.jpg 1284w, https://kinsta.com/wp-content/uploads/2022/01/custom-block-without-move-and-remove-controls-300×178.jpg 300w, https://kinsta.com/wp-content/uploads/2022/01/custom-block-without-move-and-remove-controls-1024×608.jpg 1024w, https://kinsta.com/wp-content/uploads/2022/01/custom-block-without-move-and-remove-controls-768×456.jpg 768w” sizes=”(max-width: 1284px) 100vw, 1284px”>
A custom block without move and remove controls

You can also lock a specific block in a block pattern. For an example, see also Locking Blocks in WordPress 5.9.

New API to Access Global Settings & Styles

WordPress 5.9 introduces a new PHP public API to read data from theme.json.

Reading Settings and Styles from theme.json

There are two new functions to read data from settings and styles sections declared in the theme.json:

wp_get_global_settings( $path = array() , $context = array() );
wp_get_global_styles( $path = array(), $context = array() );$path is an array listing the path to the specified setting$context is an array setting the context for those data. Developers can read from a specific block settings section — for example, array( ‘block_name’ => ‘core/paragraph’ ). The orygin key set to base allows ignoring custom data saved by the user.

The following sample code would return the contentSize setting value. In Twenty Twenty-Two, it would be 650px:

wp_get_global_settings( array( ‘layout’, ‘contentSize’ ) );

By setting a context, you can retrieve styles for specific blocks. The following code shows how to retrieve the border radius value for the core/button block:

function get_global_styles() {
array( ‘border’, ‘radius’ ),
array( ‘block_name’ => ‘core/button’ )>

The function above returns the required property value while considering default settings, theme settings, and user data. The custom value will be provided if the user configures the button border radius in the Global Styles interface.

To ignore user data, you would use the following code:

function get_global_styles() {
array( ‘border’, ‘radius’ ),
array( ‘block_name’ => ‘core/button’, ‘origin’ => ‘base’ )>

Getting the Generated Stylesheet

WordPress 5.9 also introduces a new function to get the stylesheet resulting from default, theme, and custom styles:

wp_get_global_stylesheet( $types = array() );

$types is a list of the styles to generate.

You can read more about the new API in New API to access global settings & styles.

More Features for Developers

Additional WordPress 5.9 changes for developers you may want to know about include:

Block themes, a new way to build themes in WordPress 5.9Updates for Settings, Styles, and theme.jsonTheme-focused changes and filters in WordPress 5.9New Capability Queries in WordPress 5.9Miscellaneous Core changes in WordPress 5.9Miscellaneous block editor changes in WordPress 5.9Take more control over Inner Block Areas (as a block developer)


We’ll wrap up this article with a quick note on WordPress market share. WordPress currently powers over 65% of all the websites whose content management system is known and sits north of 43% of all websites.

These numbers are impressive, especially when compared to the closest competitors with less than 5% market share, like Shopify.

And this also means that you cannot overlook the evolution of the WP CMS. Each new version of WordPress brings new features, interface enhancements, performance improvements, and WordPress 5.9 is no exception. All you need to test the new features is a block theme, like the new Twenty Twenty-Two default theme, and you’ll be ready to go.

Over to you, now! Are you ready to make the switch to block themes and FSE? And what are your favorite changes coming with WordPress 5.9?

The post What’s New in WordPress 5.9 — Full Site Editing, Global Styles, Blocks, Patterns, APIs, UI Enhancements, and Much More .