Gutenberg + Themes: Week of April 4th, 2022

Hello! This is the 78th roundup of theme-related discussions, fixes, and developments in GutenbergGutenberg The Gutenberg project is the new Editor Interface for WordPress. The editor improves the process and experience of creating new content, making writing rich content much simpler. It uses ‘blocks’ to add richness rather than shortcodes, custom HTML etc. https://wordpress.org/gutenberg/ coinciding with the 12.9 release.

The blockBlock Block is the abstract term used to describe units of markup that, composed together, form the content or layout of a webpage using the WordPress editor. The idea combines concepts of what in the past may have achieved with shortcodes, custom HTML, and embed discovery into a single consistent API and user experience. locking UIUI UI is an acronym for User Interface - the layout of the page the user interacts with. Think ‘how are they doing that’ and less about what they are doing.

The new block locking UI gives themes the ability to lock some blocks. When a block is locked, users are either unable to move it, remove it, or both. This is particularly useful for site level blocks like which are necessary for themes to work as expected, for example Post Content and Query blocks.

New template types

Theme builders are now you are able to create a templates for many different types of pages on their site including CategoryCategory The 'category' taxonomy lets you group posts / content together that share a common bond. Categories are pre-defined and broad ranging., Author, TaxonomyTaxonomy A taxonomy is a way to group things together. In WordPress, some common taxonomies are category, link, tag, or post format. https://codex.wordpress.org/Taxonomies#Default_Taxonomies. Date, TagTag Tag is one of the pre-defined taxonomies in WordPress. Users can add tags to their WordPress posts along with categories. However, while a category may cover a broad range of topics, tags are smaller in scope and focused to specific topics. Think of them as keywords used for topics discussed in a particular post. and Attachment pages. This brings more aspects of the template hierarchy to the UI, so that theme builders can create their designs with writing code.

Theme exporting

The exporting features in the Site Editor now includes all theme files alongside the modified templates and parts. This means you can now build a theme in the Site Editor, and export it for use elsewhere, with your edits included.

Patterns

Patterns can now be shipped with your theme without needing any PHP.  Create a new directory called patterns at the root of the theme, and add your patterns as HTMLHTML HTML is an acronym for Hyper Text Markup Language. It is a markup language that is used in the development of web pages and websites. files. You can create patterns in the block editor, switch to the code editor and copy the code into a new HTML file.

General Resources: