WordPress contributors have updated the Theme Handbook to include a new chapter on block templating. The chapter covers how the WordPress block template system works, how to build custom templates and parts and include them in a theme. This is critical documentation designed to provide a learning path for those who are building their first block themes.

Automattic-sponsored developer advocate Justin Tadlock announced the update on Twitter, noting that it also includes a couple of new docs in the Global Settings and Styles chapter for registering template-related features in theme.json, and the same for template parts.

The new chapter on block templating is just one part of a larger effort to overhaul the Theme Handbook for modern day WordPress. Contributors are transitioning the focus from classic theming to block theming, with just one chapter in the handbook devoted to classic themes.

“It was created during a time when classic themes were the only method of front-end design for WordPress,” Tadlock said in the proposal to overhaul the handbook. “Much of its content now exists in a transitory state between classic and modern block theming. This has created a scenario where the handbook sometimes reads more like patchwork than if it were built with a single vision. That is often a natural result of adding new documentation over years.”

The proposal does not recommend scrapping all of the existing content but rather carrying some of it forward to be updated and reorganized. A good portion of the existing content is still relevant to be migrated to the Classic Themes chapter.

Overhauling the Theme Handbook is a colossal effort that’s still ongoing. It’s being managed under a tracking ticket on GitHub. The new chapter better supports developers who are just figuring out how the WordPress block template system works, but there are many more chapters that need attention. Anyone who would like to get involved in the project can select any issue on the ticket to get started.

Category: ,

Share this:

Like this

Like Loading…

Visit TechPros

Explore GistGrill

Leave a Reply

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

Explore More

Online Scams: How to Spot and Avoid

In an increasingly digital world, being vigilant about online scams is crucial to protect oneself from fraudulent activities and potential threats. Knowing how to identify and steer clear of online

Gemini from Google: A New Era of AI Power and Capabilities

The world of artificial intelligence just witnessed a giant leap forward with the launch of Google’s Gemini, a powerful and versatile AI model exceeding human performance on various benchmarks. This

How the TECNO SPARK 20 series strikes affordability with luxury

How the TECNO SPARK 20 series strikes affordability with luxury In a world with numerous smartphones, it can be hard to stand out from the crowd. But what if there