Gutenberg 6.2 Adds Nesting Capabilities to Cover, Media & Text Blocks

Gutenberg 6.2 has two new user-facing features that were added based on community feedback. The Cover and Media & Text blocks now allow for nesting any type of block inside.

Previously, the Cover block only allowed users to add a heading, button, or paragraph block. Users had resorted to employing clunky solutions to get around the restrictions, such as using the group block with a custom class and using CSS to add backgrounds and overlay styling. The restrictions have now been removed to give users greater flexibility in styling these blocks.

Another new user-facing feature in 6.2 is the ability to customize the link target of the Button block, enabling users to designate the link to open in a new tab. Gutenberg Phase 2 lead Riad Benguella said this small improvement was a frequently requested feature.

This release also introduces a new PHP API to simplify the registration of block styles variations. It offers a simple way for plugin and theme developers to register block styles using only PHP function calls, instead of using JavaScript. This should make styling blocks more approachable for those who are more comfortable with PHP.

Gutenberg 6.2 includes more than two dozen enhancements and bug fixes, along with many mobile and documentation improvements. Check out the changelog in the release post for more details.

Would you like to write for WP Tavern? We are always accepting guest posts from the community and are looking for new contributors. Get in touch with us and let's discuss your ideas.

1 Comment


  1. Another new user-facing feature in 6.2 is the ability to customize the link target of the Button block, enabling users to designate the link to open in a new tab

    Hallelujah

    Report

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.