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
-
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.
-
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.htmlandparts/footer.html(recommended)
- Create a theme folder with:
References
- Create Block Theme plugin:
- Block theme structure:
- Required templates:
theme.json version choice (compatibility)
theme.json has schema versions. Pick the highest version that matches your minimum supported WordPress version.
References:
- Theme Handbook introduction:
- Theme.json version 3 dev note: