Skip to content
Themes

WordPress Block Theme vs Classic Theme: Honest Comparison

Tell a block theme from a classic in 30 seconds, see what each costs editors and developers, and decide whether to switch, stay, or add theme.json instead.

Published Updated

Open your theme folder. If it contains a templates directory with an index.html inside it, you have a block theme; almost every block theme also has a theme.json at the root. If it contains index.php alongside files like header.php and footer.php, and your admin sidebar shows Appearance then Customize, you have a classic theme.

That single structural difference decides who can change what on your site, where those changes are stored, and which half of the WordPress plugin ecosystem behaves normally.

TL;DR: a block theme hands the whole page to the Site Editor and stores edits in the database; a classic theme keeps the page in PHP files edited by a developer. Neither is strictly “better”. The right one depends on who edits the site after it launches, and a classic theme with theme.json added is a real middle option, not just a compromise.

The 30-second identification

SignalClassic themeBlock theme
Root template fileindex.phptemplates/index.html
Header and footerheader.php, footer.phpparts/header.html, parts/footer.html
Global configfunctions.phptheme.json (plus optional functions.php)
Admin menuAppearance > Customize, plus Patterns (or Design, if the theme has a theme.json or declares editor-styles support)Appearance > Editor
Where edits are savedFiles on diskDatabase, as wp_template posts
Widgets screenPresent if the theme registers a widget areaAbsent, unless the theme registers a widget area
Two WordPress Appearance menus side by side. The block theme, Twenty Twenty-Five, lists Themes, Editor and Fonts. The classic theme, Twenty Twenty-One, lists Themes, Design, Customize, Widgets, Fonts, Menus, Background twice and Theme File Editor, with no Editor.
The same WordPress 7.1.4 site with each theme active. Twenty Twenty-Five has Editor. Twenty Twenty-One has no Editor entry, but adds Design, Customize, Widgets, Menus, Background and Theme File Editor.

WordPress makes the call by looking for templates/index.html, or block-templates/index.html, the folder name from the Gutenberg-plugin era that core still reads as a fallback. theme.json plays no part in the test. A theme that ships a theme.json but keeps its PHP templates is still treated as classic; that middle state is common, and it is covered below.

We checked both rules on 2026-11-16 in WordPress Playground (WordPress 7.1.4, PHP 8.3) with a minimal classic test theme:

Test theme contentswp_is_block_theme()Appearance submenu
index.php, style.css, functions.phpfalseThemes, Patterns, Customize, Fonts, Theme File Editor
The same, plus a theme.jsonfalseThemes, Design, Customize, Fonts, Theme File Editor
The same, plus only block-templates/index.htmltrueThemes, Editor, Fonts
Twenty Twenty-Five, for comparisontrueThemes, Editor, Fonts

With block-templates/index.html in place, the front page rendered that block template instead of index.php.

If you have shell access, one command settles it:

wp eval 'var_dump( wp_is_block_theme() );'

WP-CLI is the fastest check on a site you did not build, especially when a page builder has hidden the usual admin menus.

What changes for the person editing the site

In a classic theme, the header, footer, sidebar, colors, and logo live behind Appearance → Customize, and you only get the controls the theme author decided to build. If the theme did not register a control for the footer copyright text, there is no control. You edit a PHP file or you live with it.

In a block theme, the Site Editor exposes the entire page. Header, footer, the loop, the 404 page, the search results layout: all of it is blocks, all of it is editable by someone who has never seen PHP. That is the real headline feature, and it is genuinely large.

The cost is that everything is editable by someone who has never seen PHP. A client can delete the site title from the header at 2am and there is no version history on disk to restore from, only the Site Editor’s own revisions. Locking things down is possible with block locking and by restricting who reaches the editor, but it is opt-in work you have to remember to do.

Two smaller losses that bite in practice: block themes have no Widgets screen unless they register a widget area (template parts and blocks do that job instead), and classic menus are replaced by the Navigation block, which stores its items as a separate content type rather than in the familiar Menus screen.

What changes for the developer

Classic themes use the PHP template hierarchy. WordPress resolves a request down a known chain, for a single post single-{post_type}-{slug}.php, then single-{post_type}.php, then single.php, then singular.php, then index.php (the block theme template hierarchy reference maps every chain), and your file runs, calls get_header(), runs The Loop, and prints markup you control character by character.

<?php get_header(); ?>
<main class="site-main">
  <?php while ( have_posts() ) : the_post(); ?>
    <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>
  <?php endwhile; ?>
</main>
<?php get_footer(); ?>

Block themes use the same hierarchy names with .html extensions, but the file contains block markup (HTML with block delimiters in comments), and there are no template tags:

<!-- wp:template-part {"slug":"header","tagName":"header"} /-->

<!-- wp:group {"tagName":"main"} -->
<main class="wp-block-group">
  <!-- wp:post-title {"level":1} /-->
  <!-- wp:post-content /-->
</main>
<!-- /wp:group -->

<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->

Three consequences developers hit immediately:

get_header() and get_footer() never run. Anything hooked to those actions, in a plugin or an old child theme, silently does nothing. A classic child theme’s stylesheet enqueue is a separate trap with its own fixes, covered in why a child theme’s styles stop loading. wp_head and wp_footer still fire, so most enqueueing survives, but header-specific hooks do not.

The database beats your files. The moment anyone saves a template in the Site Editor, WordPress stores that version as a wp_template post and serves it instead of your file. You can edit the HTML file all afternoon and see zero change on the front end. Resetting that template in the Site Editor deletes the saved copy and restores the file version. It is not a bug, and why a block template is not applying walks through the fix.

We tested this on 2026-11-06 on a fresh WordPress 7.1.4 install in WordPress Playground (PHP 8.3) with Twenty Twenty-Five active. We called the REST route the Site Editor itself calls when you click Save, then checked the homepage after each step:

StepActionTemplate sourceMarker on homepage
1Nothing changed yettheme (read from templates/home.html)Not present
2POST /wp-json/wp/v2/templates/twentytwentyfive//home with a test paragraph added, the same call the Site Editor makes on Savecustom (new wp_template post, id 7)Present immediately
3DELETE the same route, without force, which moved the saved copy to the trashtheme againGone again

No file on disk was touched. Saving once in step 2 was enough to make the database win over the theme’s own file, and trashing the saved copy in step 3 handed control back to the file. A repeat run on 2026-11-16 (WordPress 7.1.4) with the Single Posts template showed the same switch in the REST source field, from custom after the save back to theme after the delete.

The Site Editor’s Reset button does not send that DELETE. It saves the template again with source set to theme, and the REST controller answers by deleting the saved copy permanently (read from the WordPress 7.1.4 source, not run). The front end ends up the same way: the file is back in charge.

Styling moves into theme.json. Colors, spacing scale, typography, and per-block defaults are declared as data rather than CSS, and WordPress generates the CSS (how theme.json settings and styles work covers the details). It is cleaner and far more consistent until you need something the schema does not express, at which point you are writing CSS anyway and fighting specificity against generated rules.

{
  "version": 3,
  "settings": {
    "color": {
      "palette": [
        { "slug": "brand", "color": "#1a1a1a", "name": "Brand" }
      ]
    }
  }
}

Check the version value against the oldest WordPress release you support, because the schema has been revised more than once. Current WordPress migrates a version 1 or 2 file to version 3 as it reads it, so an old number from a tutorial does not make it ignore the file. A missing version key does: WordPress then replaces the file with an empty one, and none of its settings apply (read from the WordPress 7.1.4 source, not run).

Note that functions.php does not disappear. Block themes still use it for enqueueing, registering add_image_size entries, custom post types, and anything else PHP. You just do far less templating there.

What you actually gain, and what you actually lose

Going block gains you: editor control over the whole page, design consistency enforced by theme.json, fewer files to maintain, and styles that match between the editor and the front end far more often than classic themes ever managed.

Going block loses you: direct control of output markup, straightforward hook-based customization, compatibility with anything that assumes PHP templates, and the reassurance that the site’s appearance lives in version control.

That last one deserves emphasis. In a classic theme, git log tells you what changed. In a block theme, a meaningful share of the site’s appearance lives in the database where your deployment pipeline does not look.

If you want to feel those trade-offs before deciding, install one of our free block themes on a staging site and edit a template in the Site Editor.

When a classic theme is still the right answer

  • A page builder runs the site. Elementor, Divi, Beaver Builder and similar tools take over templating themselves. Layering a block theme underneath adds a second templating system that does nothing.
  • The markup has to be exact. Bespoke component libraries, strict accessibility markup, unusual schema requirements: block output is constrained by what blocks emit, and fighting it costs more than writing PHP.
  • Heavy plugin templating. Membership, LMS, directory, and older commerce extensions frequently ship PHP template overrides. Many have block equivalents now; many do not.
  • The site is finished and working. A theme with five years of accumulated customization has no upgrade path to block, only a rebuild. “It is the newer approach” is not a business reason.
  • Nobody but you will edit it. The Site Editor’s main benefit is handing control to non-developers. If there are no non-developers, you are paying the costs for a benefit nobody uses.

The hybrid middle ground

A classic theme can add a theme.json and get the global styles system, the color and spacing presets, and consistent editor styling, while keeping its PHP templates and Customize screen. WordPress does not call this a block theme. In our test the Appearance menu swapped Patterns for Design, which opens the Site Editor without the full template editor. A classic theme that also declares add_theme_support( 'block-template-parts' ) can edit block template parts there (read from the WordPress 7.1.4 source, not run). You get most of the design-system benefit for a fraction of the work.

For an existing site that mostly works, this is usually the right first move. Add theme.json, define your palette and spacing, delete the CSS it replaces, and see whether you still want the rest. The theme.json generator writes a valid starting file with your palette, font sizes and layout widths.

If you do move a classic site to a block theme

Work through this on a staging copy, in this order:

  1. Take the hybrid step first. Add a theme.json to the current classic theme, move the palette, font sizes and spacing into it, and delete the CSS it replaces. Everything you move here carries straight into the block theme.
  2. List what hooks into the old template functions. Anything attached to get_header, get_footer or get_sidebar, and every widget area, stops running in a block theme. Each one needs a block, a pattern or a template part instead.
  3. Write down the Customize settings the theme uses. Theme settings saved there belong to the old theme, and block themes hide Appearance → Customize unless a plugin or the theme still hooks into it. Logo, colors and header options need a new home in the Site Editor.
  4. Build the minimum, then the specific. templates/index.html, parts/header.html and parts/footer.html first, then a template for each view that needs its own layout. The template hierarchy reference shows which file name each view looks for.
  5. Rebuild menus in the Navigation block, and check every plugin that ships PHP template overrides, such as membership, LMS or older commerce extensions.
  6. Switch on staging, then compare. Activate the new theme, walk through the main page types, and export the database before anyone edits in the Site Editor, because those edits live there and not in your theme files.

Edge case: switching away from a block theme does not clean up after it. Every wp_template and wp_template_part post stays in the database, tagged to the theme slug it belonged to, even after you activate a classic theme. They are inactive, not deleted. Switching back to that block theme later restores every Site Editor customization exactly as it was, which is convenient, but it also means a database export of a site that once ran a block theme can carry years of orphaned template rows nobody remembers creating.

Sources

William Lopez

William Lopez is the founder of Odie Themes. He builds the free WordPress tools and themes on this site and has been on WordPress.org since December 2019.

WordPress.org About

FAQ

Questions

How do I tell if my WordPress theme is a block theme or a classic theme?

Open the theme folder. A block theme has a templates directory containing index.html (older ones use block-templates/index.html) and almost always a theme.json file. A classic theme has index.php and PHP template files like header.php and footer.php. In the admin, block themes show Appearance then Editor, classic themes show Appearance then Customize.

Are block themes better than classic themes?

Not universally. Block themes give non-developers real control over every part of the page and remove a lot of PHP boilerplate. Classic themes give developers precise control over markup and work with the entire history of plugins, page builders, and hooks. The right choice depends on who edits the site after launch.

Can I convert my classic theme to a block theme?

Not by flipping a switch. Converting means rewriting every PHP template as HTML block markup, moving styles into theme.json, and replacing widget areas and menus with blocks. For a heavily customized theme this is a rebuild, not a migration. A hybrid approach, adding theme.json to your classic theme, is usually the cheaper first step.

Why did my template file changes stop showing up after I edited the Site Editor?

Once someone edits a template in the Site Editor, WordPress saves that version to the database as a wp_template post, and the database copy wins over the file on disk. Your file edits are ignored until you reset that specific template, which deletes the saved copy.

Does a classic theme still work in current WordPress?

Yes. WordPress treats any theme without templates/index.html (or block-templates/index.html) as classic and serves it through the PHP template hierarchy. In our WordPress 7.1.4 test, a minimal classic theme with only index.php, style.css and functions.php ran as the active theme, and its Appearance menu still listed Customize, as Twenty Twenty-One's did.