Skip to content

Add classic-to-blocks command#2789

Open
mtias wants to merge 1 commit intotrunkfrom
add/classic-to-blocks
Open

Add classic-to-blocks command#2789
mtias wants to merge 1 commit intotrunkfrom
add/classic-to-blocks

Conversation

@mtias
Copy link
Member

@mtias mtias commented Mar 12, 2026

Introduce a workflow to convert a classic WP theme into a block theme, ensuring the rendering is faithful to the original.

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Mar 12, 2026

📊 Performance Test Results

Comparing b1f028b vs trunk

app-size

Metric trunk b1f028b Diff Change
App Size (Mac) 1279.98 MB 1279.99 MB +0.01 MB ⚪ 0.0%

site-editor

Metric trunk b1f028b Diff Change
load 1885 ms 1912 ms +27 ms ⚪ 0.0%

site-startup

Metric trunk b1f028b Diff Change
siteCreation 6103 ms 6136 ms +33 ms ⚪ 0.0%
siteStartup 3939 ms 3933 ms 6 ms ⚪ 0.0%

Results are median values from multiple test runs.

Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff)

- **parts/header.html**: Header template part — must match the original header exactly (logo, navigation, any top bars).
- **parts/footer.html**: Footer template part — must match the original footer exactly.

### Conversion rules:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you find this useful? I wonder if the LLM is capable of figuring these by itself?

@youknowriad youknowriad force-pushed the add/classic-to-blocks branch from ded50ee to b1f028b Compare March 16, 2026 09:02
@youknowriad
Copy link
Contributor

In my test I ended up with a block theme with multiple HTML blocks instead of Core blocks. I wonder if we should address this or not. The command is a good start anyway.

@mtias
Copy link
Member Author

mtias commented Mar 17, 2026

@youknowriad yes, we should definitely iterate on it. I'm thinking we need a /html-to-blocks loop that can be invoked in many of these workflows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants