Custom WordPress Theme Architecture: Block Themes vs Classic Themes
A WordPress theme controls your site design. Block themes are the modern approach: HTML templates made of blocks that editors can change in the Site Editor, with global settings in theme.json. Classic themes use PHP templates. For a new custom build, a block theme is usually the better starting point.
This article is for developers and site owners deciding how to structure a custom WordPress theme. The definitions come from the WordPress Theme Handbook.
What is a theme?
A theme controls your site's design, including colors, fonts and layout. It takes the content WordPress stores and displays it in the browser.
Block themes and classic themes
| Block theme | Classic theme | |
|---|---|---|
| Templates | HTML templates with block markup | PHP templates |
| Editing | Creators and users can edit templates in the Site Editor | Edited in code |
| Global settings | Defined in theme.json | Set in code |
| Status | The modern approach, which the handbook focuses on | A system dating to WordPress 1.5 (2005) with fewer standards to follow |
A hybrid theme is a classic theme that adopts some block features. The handbook notes that this is not an official theme type.
What theme.json does
theme.json defines a block theme's global settings and styles. Users can customize those settings through the Styles interface in the Site Editor.
Our approach
We build lightweight, bespoke themes without relying on bloated page builders. We use modern CSS Grid and Flexbox for responsive layouts and keep the DOM shallow so pages stay fast.
How to choose
- List who edits the site and how much control they need over layout.
- Check whether the plugins you depend on work with block themes.
- Decide who maintains the theme and in which skills.
- For a new build with no classic-only dependency, start with a block theme.
- For an existing classic theme, migrate in stages rather than rewriting everything.
Common mistakes
- Stacking a page builder on top of a custom theme.
- Putting design decisions in plugins instead of the theme.
- Hard-coding colors and fonts instead of defining them once.
Frequently asked questions
What is a block theme?
A theme built from blocks, using HTML templates with block markup that can be edited in the Site Editor.
What is theme.json?
A file that defines a block theme's global settings and styles, which users can adjust in the Styles interface.
Is a classic theme obsolete?
No, but the handbook focuses on block themes as the modern approach, and classic themes have fewer standards to follow.
Related
Sources
Need this built or fixed?
Start a proposal and our EU-sovereign team will scope it with you.
Start a proposal →