convert-to-wp-theme
Convert a complete HTML/CSS/JavaScript project into a production-ready WordPress block theme (Full Site Editing).
Generate an empty, valid WordPress block theme scaffold from scratch — no source HTML required.
> /plugin marketplace add siddik-web/wp-block-theme-converter > /plugin install wp-block-theme-converter@siddik-web
How it fires
How this command gets triggered: by you, by Claude, or both.
/scaffold-wp-themeContext preview
What this command does when you run it.
Generate an empty, valid WordPress block theme scaffold from scratch — no source HTML required.
description: Generate an empty, valid WordPress block theme scaffold from scratch — no source HTML required.
**Purpose:** Generate an empty, valid WordPress Block Theme scaffold with no source HTML to convert. Useful for starting a new theme from scratch.
User types `/scaffold-wp-theme` followed by basic theme info.
Ask the user these questions in your response (one batch):
1. **Theme name** — free text 2. **Style preset** — single select: "Minimal blog", "Editorial magazine", "Portfolio", "Business landing", "WooCommerce store" 3. **Build system** — single select: "Vite 6 (recommended)", "wp-scripts", "None (vanilla)"
If WooCommerce is selected, also ask: 4. **WC features needed** — multi-select: "Single product page", "Product archive", "Cart/Checkout", "My Account", "All of the above"
Each preset maps to a different default `theme.json` and starter patterns:
| Preset | Default Colors | Default Fonts | Starter Patterns | |--------|---------------|---------------|------------------| | Minimal blog | Black/white/gray | Inter + Lora | hero-blog, post-grid, newsletter | | Editorial magazine | Cream/black/red accent | Fraunces + Inter Tight | hero-editorial, featured-grid, author-bio | | Portfolio | Dark theme, neon accent | Space Grotesk + JetBrains Mono | hero-portfolio, project-grid, contact | | Business landing | Blue/white | Plus Jakarta Sans | hero-saas, features, pricing, testimonials, cta, footer | | WooCommerce store | Black/white/gold | Inter + Cormorant | hero-product, product-grid, bundle, reviews, trust-badges |
Output the same file structure as `/convert-to-wp-theme`, but with placeholder content rather than converted source. Read `references/file-structure.md`.
Use templates from `templates/` directory:
Generate at minimum:
## Scaffold Complete
Your `{{theme-slug}}` theme scaffold is ready.
## Next Steps
1. **Customize:** Edit `theme.json` to match your brand colors and fonts
2. **Add content:** Use Site Editor to populate templates and parts
3. **Add patterns:** Run `/wp-pattern` to convert HTML sections into patterns
4. **Build:** `npm install && npm run build`
5. **Activate:** Upload to WordPress and activate
## Files Generated
{{count}} files across {{n}} directories.User: /scaffold-wp-theme Make me an editorial magazine theme called "The Northaven Review"
→ Claude asks 2-3 quick questions → generates complete scaffold with editorial preset.
A Claude Code plugin (and standalone skill) for converting any HTML/CSS/JavaScript project into a production-ready WordPress Block Theme (Full Site Editing). Author: Md Siddiqur Rahman License: MIT
Repo: siddik-web/wp-block-theme-converter
Convert a complete HTML/CSS/JavaScript project into a production-ready WordPress block theme (Full Site Editing).
Scaffold a custom WordPress block (block.json, edit.js, save.js or render.php, styles) ready to register inside a block theme.
Convert an existing classic WordPress theme (PHP templates, functions.php) into a Full Site Editing block theme.
Diagnose and fix WordPress block-theme failures — block validation errors, theme.json issues, missing patterns, DB template overrides, and PHP warnings.
Migrate existing WordPress content (Classic Editor, ACF, widgets, CPTs, shortcodes, page builders) into a block theme.
Convert a single HTML section or snippet into a registered WordPress block pattern PHP file.