Block themes, explained: what changed and why it matters

Block themes replace PHP templates with HTML templates and a settings file. Here is what actually changed, what you gain and where the trade-offs lie.

Blocks arrived with WordPress 5.0, but for years they only governed the content area of a post. Everything around that content – header, footer, archive layouts – still lived in PHP template files that only developers could safely touch. Block themes close that gap. They let the same block editor describe the whole site, and that changes how themes are built, customised and maintained.

What a block theme actually is

A block theme is a theme whose templates are written in block markup rather than PHP. At minimum it contains an index.html file in a templates folder, plus a style.css for the theme header. Most also include a theme.json file, template parts such as a header and footer, and a set of patterns.

Because templates are just serialised blocks, they can be edited visually in the Site Editor, which arrived with WordPress 5.9 under the name full site editing. Changes you make there are stored in the database and take precedence over the files in the theme, which can be reset to the theme defaults at any time.

Classic and block themes compared

AspectClassic themeBlock theme
TemplatesPHP files such as single.phpHTML files containing block markup
Design settingsScattered across CSS, PHP and the CustomizerCentralised in theme.json
Header and footerPHP includes, widgets, menusTemplate parts edited as blocks
Who can change layoutMostly developersEditors with the right capability, in the Site Editor
Reusable layoutsPage templates, shortcodesPatterns and synced patterns

Why it matters for designers

  • One source of truth – colours, font sizes and spacing scales are declared once and appear in the editor and on the front end alike.
  • What you see is closer to what you get – the editor reads the same design tokens as the published site, so previews are more trustworthy.
  • Less custom CSS – many things that once required a stylesheet, such as content width or button styling, are now settings.
  • Portable building blocks – patterns can be shared between sites and themes without code.

Why it matters for site owners

Owners gain the ability to adjust a footer, add a banner above the header or restyle the blog index without opening a code editor or installing a plugin for each small need. The flip side is responsibility: a site where many people can edit global templates needs clear rules about who does so, and a habit of reviewing changes before they go live.

Trade-offs to weigh

Block themes are not automatically the right answer for every project. Sites with large amounts of bespoke PHP logic, or teams deeply invested in a classic theme framework, may find migration costly for modest benefit. Some third-party plugins integrate better with classic themes, though support for block themes has improved considerably. Performance can be excellent, since a block theme ships little code by default, but it depends on how many blocks and scripts a page loads, not on the theme type alone.

Child themes also work differently. You can still create them, but because so much lives in theme.json and user-level customisations in the database, the old habit of overriding templates file by file is less central. Understanding the layering – theme defaults, child theme, then user edits – is the key to predictable results.

Where to start

If you are curious, install a default block theme on a staging site and open the Site Editor. Edit a template part, create a pattern, then look at the theme.json file to see how the visual choices map to code. The official theme developer handbook explains each file in detail. An hour of exploring teaches more than any overview, including this one.

A Greater Star

Need help with your WordPress site?

The people behind this site build and look after WordPress sites every day at A Greater Star – new sites, custom plugins, support agreements, hosting, security and speed.