What is a Block Theme in WordPress?
A block theme in WordPress is a type of theme that uses blocks to design and control every part of a website, including headers, footers, sidebars, and content areas. It works with the Site Editor and features introduced through Full Site Editing, offering a fully visual interface for building and editing site layouts.
Block-Based Site Structure
Block themes are built on a block-based system. Each part of a page—text, images, gallery, buttons—is a block. These blocks are moveable elements users can add, remove, or arrange within a layout.
Block themes include:
- Blocks: Small units like paragraphs or images placed on a page.
- Block Patterns: Pre-arranged groups of blocks used to create layouts quickly.
- Template Parts: Reusable page sections (such as headers or footers).
- Templates: Complete page layouts for posts, pages, and other types.
- Themes: The files and structure that handle design settings for the whole site.
Site Editor and Visual Editing
Block themes are designed to work directly with the Site Editor. The Site Editor replaces older tools like the Customizer for themes that support Full Site Editing. It lets users move between templates, edit their layout live, and create or update template parts without code.
Users can also edit areas that weren’t easily editable in classic themes, such as:
- Post archive pages
- 404 error pages
- Category and tag templates
All of this is managed using a visual drag-and-drop interface.
Full Site Editing Features
WordPress block themes depend on features included with Full Site Editing:
- Template Editor – Create new page templates or edit existing ones.
- Global Styles – Control styling like fonts, colors, and spacing for the entire site or for specific blocks.
- Style Variations – Some block themes include several default style variations that users can switch between with one click.
Replacing Theme Features from Classic Themes
Block themes replace several older WordPress features:
Feature in Classic Themes | Feature in Block Themes |
Widgets/W widget areas | Any block can act as a widget |
PHP template files | HTML-based block templates |
Theme Customizer | Styles tab in Site Editor |
The Customizer is not included in active block themes unless re-enabled by plugins or custom code.
Styling and Custom Block Design
Block themes support:
- Global Styles that apply across the site. These control things like heading fonts or background colors.
- Custom Block Styles for single blocks. This can be useful for buttons, images, or sections needing custom formatting.
These controls are accessed through the Styles section in the Site Editor and apply without custom CSS or PHP.
Template File Structure
Block themes organize templates and layout code differently from classic themes:
- Templates are stored as HTML files inside a /templates folder.
- Template parts go into a /parts folder (or /template-parts).
- These files are structured for reuse and clarity, with minimal code in comparison to PHP-heavy classic themes.
This helps with better organization and reduces the need for custom logic in templates.
Choosing and Using a Block Theme
To use a block theme effectively:
- Install a block-based theme from the WordPress theme directory.
- Open the Site Editor from the Appearance menu.
- Customize existing templates or create new ones.
- Change styles from the Styles panel.
- Use or add block patterns for quick layouts.
Users don’t need custom code to control layout or design. They can make changes visually in real-time and preview them in the same interface.
Compatibility With Plugins
Block themes are fully compatible with most plugins, especially those updated to support blocks. Older plugins designed for classic themes may not work as expected, especially those using widget areas or customizer panels. Plugin developers may also need to create block versions of their modules for full compatibility.
Performance and Technical Differences
Block themes do not use PHP templates for layout output. Instead, they use block-based templates in HTML, which keeps the theme lightweight.
Features typically handled with PHP and JavaScript in classic themes—such as a site logo or tagline—are now handled using blocks. Colors, fonts, and layout settings are controlled through presets defined in the theme or adjusted by the user through the Styles panel.
Block themes only load assets needed for visible blocks, which can reduce file sizes and lead to faster page loads.
Limitations and Transition Issues
Users moving from classic to block themes may run into issues learning the new interface. Common problems include:
- Locating or editing templates like headers or footer sections
- Understanding how block patterns work
- Learning how global styles cascade
- Plugin features not appearing in the Site Editor
These topics are often discussed in WordPress forums and support communities. Most issues can be fixed by exploring the Site Editor or updating plugins.
Block Theme Version Support
Block themes require WordPress 5.9 or later. This is the version that first included the Site Editor as a core feature. Users on older versions of WordPress will need to upgrade to use block themes fully.
Summary of Key Points
- Block themes use blocks to build every part of a website
- The Site Editor allows full site customization without code
- Templates and template parts are stored as HTML
- Global styles control the design for all blocks
- Block patterns enable fast layout creation and reuse
- Classic theme features like widgets and the Customizer are replaced with modern tools
Block themes are recommended for users who want to build sites visually and take full control over their layout and design within WordPress itself.