Product design skills

references/creating-new-block-theme.md

A supporting file of the wp-block-themes skill.

Creating a new block theme

Use this file when you need to create a new block theme or convert a theme to block theme structure.

Two practical starting points

  1. Export from a WP environment

    • Use the official “Create Block Theme” plugin to generate/export a theme from the Site Editor.
    • This tends to produce a structure aligned with current WordPress behavior.
  2. Create the minimal filesystem structure

    • Create a theme folder with:
      • style.css (theme header)
      • theme.json (global settings/styles)
      • templates/index.html (minimum viable template)
      • parts/header.html and parts/footer.html (recommended)

References

theme.json version choice (compatibility)

theme.json has schema versions. Pick the highest version that matches your minimum supported WordPress version.

References:

On this page