How to Start With a Blank WordPress Theme (3 Routes)

You typed “blank theme WordPress” because you want a site without someone else’s design decisions, but the phrase covers three different things. Pick the wrong one and you will lose an afternoon fixing the wrong problem.

A blank WordPress theme is a theme with the bare minimum of code and styling, so you control the design yourself. In practice it means a developer starter theme, a minimal theme you style, or a blank canvas page template with no header or footer. This guide shows how to choose, then how to build the minimum files for both classic and block themes.

What people mean by a blank theme

WordPress picks a template file from the template hierarchy, a fixed order of fallbacks, then fills it with your content. A theme is simply the set of files that answers that lookup, which is why a theme can be tiny.

Starter themes are also called “naked themes” or boilerplates. They give you a starting point: the essential files and basic WordPress PHP, with little or no styling, so you can build a custom theme from scratch without rewriting the same setup each time. Unlike a theme framework, a starter is meant to be modified heavily.

MeaningWho it is forExamples
Starter (naked) themeDevelopers building a custom themeBlankSlate, Underscores (_s)
Minimal themeSite owners who will style it with CSS or the Site EditorA lean block theme
Blank canvas templateLanding pages inside an existing themeA page template with no header or footer

Step 1: Choose your route

  1. Choose a starter theme if you write PHP, HTML and CSS and want complete control over the markup.
  2. Choose a minimal theme if you want to change colours, fonts and layout without writing templates.
  3. Choose a blank canvas template if you only need a few pages free of header and footer, such as a landing page.

Check: you can state in one sentence what you will edit (code, styles, or a single page). If the answer is “one page”, skip to the blank canvas section.

Check the maintenance status before you commit

Before downloading any starter, open its official page. For most that is the WordPress.org theme directory page; for Underscores it is the project’s own repository. Read the “last updated” date, the tested-up-to WordPress version and the support forum.

We do not state a status here because it changes. A theme untouched for years is not automatically unsafe, but it may lack block editor support.

Step 2: Set up a local or staging site

Never experiment on a live site, because a PHP syntax error can show a white screen to visitors. Use a local tool such as LocalWP, or the WordPress Studio app, or a staging copy (a private duplicate of your site) from your host.

  1. Install WordPress locally and log in to the admin.
  2. In wp-config.php, add define( 'WP_DEBUG', true ); so errors are displayed.
  3. Open wp-content/themes/ in your code editor.

Check: the folder opens and the front page loads with a default theme.

an adult is seen indoors with an open wallet and shopping paraphernalia

Step 3: Create the minimum files for a classic theme

A classic theme needs only two files: style.css and index.php. Create a folder such as my-blank-theme and add them. The comment at the top of style.css tells WordPress the theme’s name and requirements.

/*
Theme Name: My Blank Theme
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
*/

Then add the index.php file, which prints the page and loops over your posts:

<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_body_open(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  <?php the_content(); ?>
<?php endwhile; endif; ?>
<?php wp_footer(); ?>
</body>
</html>

The calls to wp_head() and wp_footer() are essential. Plugins and the admin bar rely on them to insert scripts and styles.

Next, add a functions.php to load your stylesheet properly and enable features. The custom-logo support lets site owners upload a logo, and post-thumbnails enables the featured image. pixelfic.com walks through the specifics.

<?php
add_action( 'wp_enqueue_scripts', function () {
  wp_enqueue_style( 'my-blank-theme', get_stylesheet_uri(), array(), '1.0' );
} );
add_action( 'after_setup_theme', function () {
  add_theme_support( 'title-tag' );
  add_theme_support( 'post-thumbnails' );
  add_theme_support( 'custom-logo' );
} );

Add header.php, footer.php and sidebar.php later, once the base works. Then split the markup with get_header() and get_footer(). A sidebar is a widget area beside your content; to make it editable in the admin, register it with register_sidebar() and display it with dynamic_sidebar().

Check: the theme appears under Appearance, Themes without an error notice.

Step 4: Create the minimum files for a block theme

A block theme builds pages from HTML templates made of blocks, edited in the Site Editor. It needs style.css, a templates/index.html file and, in practice, a theme.json file for global settings such as layout widths, colours and fonts. No PHP is required.

my-blank-block-theme/
  style.css
  theme.json
  templates/index.html
{
  "$schema": "https://schemas.wp.org/trunk/theme.json",
  "version": 3,
  "settings": {
    "appearanceTools": true,
    "layout": { "contentSize": "720px", "wideSize": "1100px" }
  }
}
<!-- wp:post-title {"isLink":true} /-->
<!-- wp:post-content /-->

The style.css header is the same as in the classic example. Use the schema version that matches your WordPress release, which the official Theme Handbook documents. Check: Appearance now shows an Editor entry, and the front end displays titles and content.

step 5 activate and test

Step 5: Activate and test

  1. Activate the theme under Appearance, Themes.
  2. Import sample content with the Theme Unit Test data from the official handbook, so you see long titles, images and comments.
  3. Resize the browser and test on a phone to confirm the responsive design works on different devices.
  4. Install the Theme Check plugin and read its warnings.

Common pitfalls

  • White screen after activation: usually a PHP syntax error, so read the message shown by debug mode and fix the line named.
  • No styling at all: the stylesheet was not enqueued, or wp_head() is missing from the header.
  • Admin bar or plugin features missing: wp_footer() was left out.
  • Theme not listed: the Theme Name comment in style.css is missing or the folder is nested one level too deep.
  • Site Editor changes ignored: a classic theme has no block templates, so check which type you built.

Step 6: Use a starter theme instead of writing files

If typing the files feels slow, download BlankSlate from the WordPress.org directory. Or generate a renamed copy of Underscores on its official generator site.

Unzip it into wp-content/themes/, rename the folder and the Theme Name, and search the code for the old prefix. Starters ship with functions.php, template parts and a basic structure, so you remove what you do not need rather than adding it. BlankSlate describes itself as clean, minimalist and free of visual CSS styles, while Underscores adds lean HTML5 templates, sample layouts with a sidebar on either side, and a small script that turns the menu into a dropdown on small screens. For the wider picture, see Intentionally Blank Preview.

step 7 make a blank canvas page without

Step 7: Make a blank canvas page without a header or footer

For a single landing page, you do not need a new theme. In a classic theme, add a template file such as template-blank.php to your child theme:

<?php
/* Template Name: Blank Canvas */
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head><?php wp_head(); ?></head>
<body <?php body_class(); ?>>
<?php while ( have_posts() ) : the_post(); the_content(); endwhile; ?>
<?php wp_footer(); ?>
</body></html>

In a block theme, open the Site Editor and create a new page template. Remove the header and footer template parts, and keep only the Post Content block. Then pick that template in the page settings. Check: the page loads with only your content.

Step 8: Protect your changes from updates

Your own theme, with a unique folder name, is not overwritten by WordPress core updates. The risk appears when you edit a theme that someone else maintains, because its next update replaces your edits. an agency working along the same lines treats this as a baseline.

  • Create a child theme (a theme with Template: parent-folder in its style.css header) so edits live outside the parent.
  • Put custom PHP in a small plugin or the child theme, not in the parent files.
  • Keep the theme in Git so every change can be reverted.
  • Back up the database and files before updating, and test updates on staging first.
  • Do not rely on the Site Editor alone: changes saved there are stored in the database, so export or sync them to your theme files if you want them versioned.

When the staging copy passes your checks, deploy the theme folder to production by upload or deployment tool, then activate it. If you are unsure which route fits a project, Markup Dude can point you to the right starting structure through its published resources.

FAQ

Will a blank theme hurt my SEO?

No, a lean theme usually helps because there is less code to load. What matters is clean HTML, a title tag, headings and fast pages. You still need an SEO setup for sitemaps and metadata.

Do I need to know PHP to use a block theme?

Not for the basics. Templates are HTML with block comments and settings live in theme.json. PHP only becomes necessary for custom logic, which you can place in functions.php or a plugin.

Can I switch from a classic to a block theme later?

Yes, but it is a rebuild of templates rather than a toggle. Widgets and menus work differently, so test on staging and plan to recreate the header and footer.

Can I sell or share a theme built from a starter?

Read the license on the starter’s official page first. WordPress themes are generally distributed under the GPL, but you must keep the notices the starter requires. There’s a good explainer over at muffingroup.com.

Should I add Bootstrap or a CSS framework?

Only if your team already works with it. A framework adds weight, and modern CSS with theme.json spacing and layout settings covers most needs on a small site.

Leave a Comment