Block themes vs classic themes in WordPress 7.1: which should you build?
How block, classic and hybrid WordPress themes differ in files, editing and control, what 7.0 and 7.1 changed (responsive styles, viewport breakpoints, iframed editor), and how to choose for a new or existing site.
Updated 8 min read

In this article
Part 1 of 7
Building and running WordPress
All partsHide
Part 1 of 7
Building and running WordPress
Choosing a theme approach, building blocks, then updating, speeding up and securing the site.
Block themes vs classic themes in WordPress 7.1: which should you build?
You are here · 8 min read
If you are starting a WordPress project in late 2026, one of the first decisions is whether to build a block theme or a classic theme. Both are supported by WordPress 7.1.3, the current release, and both can produce fast, accessible sites. They differ in who can change the design, where templates live, and how much PHP your team writes.
Block themes vs classic themes differ in who can change the design, where templates live and how much PHP you write. The comparison explains how a WordPress 7.1 block theme is structured, why theme.json classic theme support also matters, and which type fits common projects.
This comparison explains how each type works, what WordPress 7.0 and 7.1 changed for theme developers, and which choice fits common situations: a brochure site handed to a client, a content-heavy publication, or an existing classic theme you need to keep running.
The short definitions
The WordPress Theme Handbook describes two primary theme types:
- Block themes are built from HTML templates that contain block markup. Users can edit every template in the Site Editor, and global settings and styles come from a
theme.jsonfile that users can adjust under Styles. The handbook calls them "the modern method of building WordPress themes" and focuses its documentation on them. - Classic themes use PHP template files, the template hierarchy that dates back to WordPress 1.5, and the Customizer. They are still fully supported and still widely used.
- Hybrid themes are an informal term for classic themes that adopt some block features, such as a
theme.jsonfile or block template parts. Technically they remain classic themes.
How the files differ
A block theme needs only two files to be recognised: style.css with the theme header, and templates/index.html. The handbook notes that templates/index.html "is necessary for WordPress to consider this a block theme".
my-block-theme/
├── style.css (required: theme header)
├── theme.json (settings and styles)
├── functions.php (optional)
├── templates/
│ ├── index.html (required: fallback template)
│ ├── single.html
│ └── page.html
├── parts/
│ ├── header.html
│ └── footer.html
└── patterns/
└── hero.phpA classic theme also needs style.css, with index.php as its fallback template, and normally splits markup into PHP partials:
my-classic-theme/
├── style.css (required: theme header)
├── index.php (required: fallback template)
├── functions.php
├── header.php
├── footer.php
├── single.php
├── page.php
└── template-parts/
└── content.phpIn a block theme, a template is block markup rather than PHP. A minimal templates/index.html that lists posts looks like this:
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
<!-- wp:group {"tagName":"main","layout":{"type":"constrained"}} -->
<main class="wp-block-group">
<!-- wp:query {"queryId":1,"query":{"inherit":true}} -->
<div class="wp-block-query">
<!-- wp:post-template -->
<!-- wp:post-title {"isLink":true} /-->
<!-- wp:post-excerpt /-->
<!-- /wp:post-template -->
<!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
</div>
<!-- /wp:query -->
</main>
<!-- /wp:group -->
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->There is no loop to write and no escaping to remember in the template itself: the core blocks (Query Loop, Post Title, Post Excerpt) handle the data and output. When you need logic that blocks cannot express, you write a custom block in a plugin and place it in the template.
Side-by-side comparison
| Aspect | Block theme | Classic theme |
|---|---|---|
| Templates | HTML files with block markup in templates/ and parts/ | PHP files following the template hierarchy |
| Who edits layout | Site owners, in the Site Editor, without code | Developers, in PHP; users get Customizer options and widgets |
| Global design settings | theme.json plus user changes in Styles | CSS, Customizer settings; theme.json optional (hybrid) |
| Responsive styles without CSS (7.1) | Yes, per block and in Global Styles | Only where blocks are used in content |
| Export a customised theme | Yes, from the Site Editor | No |
| Skills needed | Block markup, theme.json, some PHP for patterns | PHP, HTML, CSS, WordPress template tags |
| Risk of users breaking the design | Higher, unless you lock templates or limit settings | Lower, since templates are code |
| Best fit | New sites, sites that owners will maintain themselves | Existing projects, heavily custom PHP output, strict design control |
What WordPress 7.0 and 7.1 changed for themes
The last two major releases added features that mostly benefit block themes, plus one change that affects every theme.
Responsive styles and configurable breakpoints (7.1)
WordPress 7.1 lets users and themes define styles for tablet and mobile viewports, both in Global Styles and on individual blocks, without custom CSS. In theme.json you add @mobile or @tablet keys inside a block's styles. Themes can also change the breakpoints with a new top-level settings.viewport setting:
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"appearanceTools": true,
"layout": {
"contentSize": "720px",
"wideSize": "1200px"
},
"viewport": {
"mobile": "30rem",
"tablet": "48rem"
}
},
"styles": {
"blocks": {
"core/group": {
"spacing": {
"padding": {
"top": "3rem",
"right": "3rem",
"bottom": "3rem",
"left": "3rem"
}
},
"@mobile": {
"spacing": {
"padding": {
"top": "1rem",
"right": "1rem",
"bottom": "1rem",
"left": "1rem"
}
}
}
}
}
}
}According to the 7.1 developer note, the defaults are @mobile for widths up to 480px and @tablet for widths above 480px up to 782px. There is no @desktop key: the block's normal style is the base and applies at all sizes unless overridden. Breakpoints must be lengths in px, em or rem; percentages, unitless numbers and CSS functions are ignored. The same breakpoints drive the block visibility controls added in 7.0.
If you hand a site to a client and do not want them making per-device styling changes, 7.1 adds an editor setting to switch the interface off. Saved responsive styles still render.
<?php
add_filter( 'block_editor_settings_all', function ( $settings ) {
$settings['responsiveEditingEnabled'] = false;
return $settings;
} );Pseudo-state styles (7.1)
Theme authors can now style :hover, :focus, :focus-visible and :active states through theme.json, and users can set hover, focus and active styles for Button blocks in the editor. Responsive and pseudo-states nest from viewport to state, for example "@mobile": { ":hover": { ... } }.
The post editor is always iframed (7.1)
This one matters for classic themes. Since WordPress 7.1 the post editor runs inside an iframe for all themes, matching the Site Editor. The release notes say admin styles no longer leak into the content and that viewport units and media queries now target the editing canvas. If your classic theme injected editor CSS or scripts that relied on reaching the admin document, test it in 7.1 and follow the iframe migration guidance in the block editor handbook.
Font management and other 7.0 additions
WordPress 7.0 added a dedicated font management page that works with block, hybrid and classic themes, block-level custom CSS, show/hide controls per device, and a navigation overlay built from blocks and patterns. These features reduce the number of small plugins a block theme needs.
theme.json is not only for block themes
theme.json version 3 is the current schema; the living reference says it works with WordPress 6.6 or later. A classic theme can ship a small theme.json to control the colour palette, font sizes and spacing presets that users see in the block editor, without adopting block templates. This is the usual first step towards a hybrid theme:
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
"color": {
"palette": [
{ "slug": "brand", "name": "Brand", "color": "#1d4ed8" },
{ "slug": "ink", "name": "Ink", "color": "#111827" }
]
}
}
}Adding this file changes some editor defaults, so test existing content after adding it. Start with the settings you need, rather than copying a large file from another theme.
Which should you choose?
Choose a block theme when
- You are building a new site and the owner will make design changes after launch.
- The design can be expressed with core blocks, patterns and a few custom blocks.
- You want responsive adjustments, fonts and colours to be editable without a developer.
- You want to start from a default theme or a child of one and adjust it in the Site Editor.
Keep or build a classic theme when
- You maintain an existing classic theme that works; WordPress has not announced an end to classic theme support.
- Templates contain substantial custom PHP logic that would need to be rebuilt as blocks.
- The organisation needs the design locked, with content editors working only in posts.
- Plugins you depend on output templates that assume a classic theme.
Consider a hybrid step first when
- You want users to get a consistent palette and typography in the editor now, and a full move to block templates later.
- You want to try block template parts, such as a block-based footer, in one area before converting the whole theme.
A practical migration checklist
- Inventory your PHP templates and note any that contain custom queries or business logic.
- Move business logic (custom post types, shortcodes, integrations) into a plugin first. The handbook advises that themes control presentation and plugins control behaviour.
- Add a
theme.jsonwith your palette, font sizes and layout widths. - Rebuild the header and footer as template parts, then the single and page templates.
- Replace custom PHP output with core blocks or custom dynamic blocks.
- Test in the 7.1 iframed editor, at mobile and tablet widths, and with keyboard-only navigation.
Summary
Block themes are where WordPress's design tooling is going: 7.1 added responsive styles, configurable breakpoints and pseudo-state styling, all driven by theme.json and the Site Editor. Classic themes remain supported and are the safer choice for heavily customised or locked-down projects, but they must now work with an iframed post editor. For many teams the sensible path is a classic theme with a small theme.json today, and block templates for new builds.
Frequently asked questions
What files does a WordPress block theme need?
Only two:
style.csswith the theme header, andtemplates/index.html. The Theme Handbook says the index template is what makes WordPress treat the theme as a block theme. Most block themes also ship atheme.json.Are classic themes deprecated?
No. The Theme Handbook states that classic themes are still supported and keeps a dedicated chapter for them. New design features, however, mostly target block themes and the Site Editor.
Can a classic theme use theme.json?
Yes. A classic theme can include
theme.jsonto define editor colour palettes, font sizes and layout settings. The community calls this a hybrid theme, though technically it is still a classic theme.What are the default responsive breakpoints in WordPress 7.1?
@mobileapplies up to 480px and@tabletabove 480px up to 782px. Themes can change them withsettings.viewportintheme.json, using px, em or rem values.
Sources
- What Is a Theme? — WordPress Theme Handbook
- Theme Structure — WordPress Theme Handbook
- Theme.json Version 3 Reference (latest) — WordPress Developer Resources
- Responsive block styles and configurable viewports in WordPress 7.1 — Make WordPress Core, 2026-08-05
- WordPress 7.1 “Mary Lou” — WordPress.org News, 2026-08-19
- WordPress 7.0 “Armstrong” — WordPress.org News, 2026-05-20
- Block API Versions — WordPress Developer Resources, 2026-07-24
Part 2 of 7: Building and running WordPress
Next part

TutorialWordPress11 min read
How to build a dynamic WordPress block with block.json and render.php
A step-by-step tutorial for WordPress 7.1: scaffold a dynamic block with @wordpress/create-block, read the post ID from block context, add native supports, and render escaped HTML from render.php.
Comments
No comments yet. Be the first to join the conversation.
Leave a comment
Every comment is read by a moderator before it appears. Your email address is never published; it is used only to contact you about this comment.
More from Cloudsoft Zone

TutorialDevOps5 min read
GitLab CI/CD for Laravel: test, build and deploy a reviewed release to a VPS
Design GitLab CI/CD for Laravel with a reviewed PHP image, disposable MySQL checks, explicit artifacts, protected credentials and serialized VPS deployments.
By Nilesh Kushvaha

TutorialDevOps5 min read
Laravel CI/CD with GitHub Actions: verification, release artifacts and guarded deployment
Build Laravel CI/CD with GitHub Actions using locked dependencies, isolated verification, immutable release artifacts and a protected deployment job with explicit recovery gates.
By Nilesh Kushvaha

TutorialDevOps5 min read
nginx PHP upload limits: safely increase file sizes without exposing the server
Align nginx PHP upload limits with multipart overhead, PHP-FPM configuration, Laravel validation and temporary-storage capacity. Diagnose 413 errors before raising every limit.
By Nilesh Kushvaha

TutorialDevOps5 min read
CI/CD for a Next.js and NestJS monorepo: shared packages, artifacts and compatible releases
Design CI/CD for a Next.js and NestJS monorepo with one lockfile, dependency-aware checks, separate runtime artifacts and verified API compatibility during promotion.
By Nilesh Kushvaha
