-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
What problem does this address?
Currently, when switching from a classic theme to a block theme, widgets created in the classic theme aren't migrated over.
What is your proposed solution?
I could have sworn this was previously discussed, whether on a hallway hangout or in a core editor meeting, but I can't find any related issues so I decided to open this one up since this recently came up as a point of feedback. Since widgets "live" in the spaces that template parts fill, it makes the most sense for migration to happen in the form of generating template parts during migration:
- User has widgets in a classic theme.
- User switches to a block theme.
- Widget areas are converted to an equivalent template part with blocks (header, sidebar, etc). Anything already a block can remain as such and anything else could be converted to a legacy widget block thanks to the work done with the block widget editor.
If the user didn't want to use this, they could just ignore or delete the template part. If they switched back to a classic theme, it should preserve backwards compatibility. I don't know enough about the technical underpinnings here either way but wanted to get this documented regardless as it feels like a key area of refinement ahead of more folks adopting block themes in due time.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status