A block theme is a WordPress theme built from HTML templates of block markup and a theme.json file, and Full Site Editing is the set of tools that lets you edit that theme, header and footer included, in the Site Editor. Block themes arrived with WordPress 5.9 in January 2022, and on the current 7.0 release they are the default way to build a WordPress theme.
This guide covers how the pieces fit together, why a well-built block theme starts out lighter than a page builder site, and the build order I use to keep a custom block theme fast after the client starts editing it.
What is a block theme, and how is it different from a classic theme?
A classic theme builds pages with PHP template files, keeps design settings in the Customizer and CSS, and manages menus and widgets on separate admin screens. A block theme replaces all of that with HTML block templates, one theme.json design file and the Site Editor, so layout, styles and navigation are edited in one place, visually.
| Area | Classic theme | Block theme |
|---|---|---|
| Page layouts | PHP files such as single.php and archive.php |
HTML files of block markup such as single.html |
| Header and footer | header.php and footer.php |
Template parts in the /parts/ folder |
| Colors, fonts, spacing | CSS plus add_theme_support() calls and Customizer options |
theme.json, edited visually through Global Styles |
| Menus and widgets | Appearance, Menus and Widgets screens | Navigation block and template parts in the Site Editor |
| Block CSS on the front end | One combined block stylesheet on every page by default | Only the styles for blocks rendered on that page |
WordPress only needs two files to treat a theme as a block theme: style.css for the theme’s name and details, and templates/index.html as the fallback template (Theme Handbook, theme structure). Everything else is optional, though almost every real theme adds these:
my-theme/
├── style.css (required: theme header)
├── theme.json (design settings and styles)
├── functions.php (optional: PHP hooks, custom blocks)
├── templates/
│ ├── index.html (required: fallback template)
│ ├── single.html
│ ├── page.html
│ └── archive.html
├── parts/
│ ├── header.html
│ └── footer.html
├── patterns/ (block patterns, registered automatically)
└── styles/ (style variations as extra JSON files)
How does theme.json control settings and styles?
theme.json is the design system of a block theme. Its settings section decides which options editors can pick from, such as the color palette and font sizes, and its styles section sets what the site and each block look like by default. WordPress turns these values into CSS custom properties that every block can use.
Here is a trimmed version of the file I start most client themes from. It uses version 3 of the schema, which needs WordPress 6.6 or later:
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"appearanceTools": true,
"layout": { "contentSize": "720px", "wideSize": "1200px" },
"color": {
"defaultPalette": false,
"custom": false,
"palette": [
{ "slug": "brand", "color": "#0b6e4f", "name": "Brand" },
{ "slug": "ink", "color": "#1a1f1c", "name": "Ink" },
{ "slug": "paper", "color": "#ffffff", "name": "Paper" }
]
},
"typography": {
"fontSizes": [
{ "slug": "small", "size": "0.875rem", "name": "Small" },
{ "slug": "medium", "size": "1.0625rem", "name": "Medium" },
{ "slug": "large", "size": "1.5rem", "name": "Large" }
]
}
},
"styles": {
"color": {
"background": "var(--wp--preset--color--paper)",
"text": "var(--wp--preset--color--ink)"
},
"blocks": {
"core/button": { "border": { "radius": "6px" } }
}
},
"templateParts": [
{ "name": "header", "title": "Header", "area": "header" },
{ "name": "footer", "title": "Footer", "area": "footer" }
]
}
A few lines in that file do more work than they appear to:
"defaultPalette": falseand"custom": falseremove WordPress’s stock colors and the free color picker, so editors can only choose brand colors. This is the single most useful setting for keeping a client site on brand.- Each palette entry becomes a CSS variable such as
--wp--preset--color--brand, which you can use in your own CSS as well as in blocks. styles.blockssets per-block defaults, here a 6px radius on every button, without writing a stylesheet.templatePartsis an array, one object per file in/parts/, and itsareavalue tells the Site Editor where a part belongs (Theme Handbook, template parts).
How do templates and template parts work?
Templates are full-page layouts stored as HTML files in /templates/, and WordPress picks them with the same template hierarchy classic themes use: single.html for posts, page.html for pages, archive.html for archives, with index.html as the fallback. Template parts are the reusable pieces, such as the header and footer, that templates pull in.
A minimal single.html shows how they connect:
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
<main class="wp-block-group">
<!-- wp:post-title {"level":1} /-->
<!-- wp:post-featured-image /-->
<!-- wp:post-content {"layout":{"type":"constrained"}} /-->
</main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
The tagName attribute makes the template parts render as real <header> and <footer> elements, and the group renders as <main>. That gives you semantic landmarks for screen readers without extra wrapper markup.
One behavior catches out nearly every developer new to block themes. When someone edits a template or template part in the Site Editor, WordPress saves the edited copy in the database as a wp_template or wp_template_part post, and that copy overrides the file in your theme. Deploy a new header.html afterwards and the live site keeps showing the edited version. Before each deploy, either reset the template to the theme file in the Site Editor, or export the editor changes back into the theme files with the Create Block Theme plugin.
For repeated layouts inside templates, such as a pricing row or a call-to-action band, patterns are the next step. The comparison of block patterns and InnerBlocks covers when each one fits.
What can editors change in the Site Editor and Global Styles?
The Site Editor, under Appearance and then Editor, lets editors change navigation, templates, template parts, patterns and pages from one screen. Its Styles panel, called Global Styles, exposes the theme.json values visually, so editors can adjust colors, typography and spacing site-wide, or for one block type, without writing CSS.
Global Styles also lists the theme’s style variations. Since WordPress 6.0, a theme can ship extra JSON files in /styles/, for example a dark version, and editors switch between them in one click. Since WordPress 6.5, the Font Library lets editors install and manage fonts from the same panel.
That freedom is the main design decision in a client block theme. Everything an editor can choose in Global Styles comes from theme.json, so I lock the palette and font sizes there and leave layout freedom in patterns. Clients can rearrange and edit pages freely without being able to introduce off-brand colors or a fourth font.
Why does a block theme start faster than a page builder site?
Block themes load CSS only for the blocks that appear on each page, while page builders and most classic themes load their full stylesheet and scripts everywhere. A page with a heading, a paragraph and an image loads the styles for those three blocks and nothing else, so the starting page weight is small before any optimisation work.
This isn’t something you have to configure. When a block theme is active, WordPress core switches on separate, on-demand block asset loading in _add_default_theme_supports(). Classic themes can opt in to the same behavior, but most never do.
A block theme can still end up slow. The causes I find most often on block theme sites are:
- Block collection plugins that enqueue their CSS and JavaScript on every page, whichever blocks you actually use.
- Fonts loaded from a third-party server instead of self-hosted through
theme.jsonor the Font Library. - A full-width hero image uploaded at camera resolution, or lazy-loaded when it’s the largest element on the page.
- Interactive pieces such as tabs, accordions and filters built with jQuery or a heavy slider library. The Interactivity API covers the same needs with far less JavaScript.
The WordPress Core Web Vitals guide covers how to measure each of these and the order to fix them in.
How do you build a fast block theme, step by step?

This is the order I build client block themes in. Design tokens come before templates so every template uses them, and the testing step runs against real content.
- Start from a base. Generate a blank theme with the Create Block Theme plugin, or copy the current default theme, Twenty Twenty-Five, and strip out the templates and patterns you don’t need.
- Define the design system in
theme.json: palette, font sizes, spacing scale and layout widths, with the default palette and custom colors switched off. - Self-host the fonts. Add them as
fontFaceentries intheme.jsonwith WOFF2 files inside the theme, and load only the weights the design uses. - Build the template parts first, then the templates. Use
tagNamefor header, footer and main landmarks, and keep custom CSS for whattheme.jsoncan’t express. - Turn repeated layouts into patterns in
/patterns/, so editors insert approved sections instead of rebuilding them by hand. - Check every block plugin you add. Load a page that doesn’t use the plugin’s blocks and see whether its CSS or JavaScript still appears in the page source.
- Test with real content. Run PageSpeed Insights on mobile for the homepage, a post and an archive, and run an accessibility check with axe DevTools or WAVE. WordPress’s accessibility-ready requirements are a good checklist even for a theme you’ll never submit.
- Before every deploy, export or reset any templates edited in the Site Editor, so the files in your repository match what the live site renders.
If you need blocks that core doesn’t offer, the guide to building a custom Gutenberg block covers registering one with block.json, and the guide to building a custom WordPress theme from scratch covers the wider theme setup.
Should you use a block theme or a page builder?
Choose a block theme when the site needs to stay fast and on brand for years and the layouts are known up front. A page builder suits teams that need to build new, unusual layouts every week without a developer, and accept the extra page weight. For most business sites I build, the block theme wins on speed and maintenance cost.
The full comparison of page builders versus custom code covers cost, speed and long-term maintenance, and the Elementor, Divi and WPBakery comparison covers how the main builders differ. If you’d like a block theme built around your design, or an existing builder site converted, see my custom theme development service.


