Reference guide · wordpress · Published 2026-08-16 · 3 min read

Block themes vs classic themes in WordPress

Block themes vs classic themes: block themes use the Site Editor and template parts in the database, classic themes keep templates in the file system.

What a block theme changes

A classic WordPress theme defines the page structure with PHP template files such as header.php, index.php and footer.php, then relies on a mix of PHP, template tags and hooks to assemble the HTML. A block theme turns that model inside out. The entire site, from the header to the footer to individual templates, is composed of blocks. Theme files become a lightweight wrapper, and most of the layout lives as block markup that you can rearrange visually in the Site Editor under Appearance > Editor.

The single most important file in a block theme is theme.json. It centralises global settings and styles, which means color, typography, spacing and layout defaults are declared in one place instead of being scattered across many CSS files and hard-coded PHP values. That makes a block theme more predictable for a developer and, importantly, much easier for a non-technical editor to control safely without breaking the layout. If you are troubleshooting why a theme looks one way rather than another, the WordPress troubleshooting order article explains the order in which to inspect theme, plugin and configuration layers.

Where the templates live

The key technical difference is storage. In a classic theme, header.php and footer.php are files, so a change means editing PHP on disk through the file manager, FTP or a child theme. In a block theme, templates and template parts are stored partly in the file system as .html files and partly in the database once an editor saves a change. A template part such as a header that you modify in the Site Editor becomes a database entry that overrides the shipped file.

That override model has consequences worth planning for:

Choosing between them

There is no single correct answer, but the decision usually follows who maintains the site and how the layout is expected to change.

ConsiderationClassic themeBlock theme
Editing modelPHP templates + CustomizerBlocks + Site Editor
Editor controlLimited without a page builderNative and direct
Version controlClean, all filesMostly files, plus DB overrides
PerformanceDepends on how it is builttheme.json gives consistent baseline
Learning curvePHP + hooksBlock markup + theme.json

Choose a classic theme when the project needs a specific established codebase, tight PHP-level customisation or compatibility with older plugins and workflows. Choose a block theme for a new site where the editor will manage the layout, a parent theme plus the child theme pattern keeps custom code safe, and you want a stable, modern baseline. If you inherit a site that mixes both, treat the override behaviour above as the likely cause of unexpected layout drift, then confirm how the theme is stored before editing it.

Need a website built, fixed, optimised, migrated or replaced?

This technical resource is written by CSMBAC, a small design and development studio. If you would rather hand the problem to a professional, the website service page explains how we build enquiry-ready websites.

Explore website services