-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Description
While working on a theme created from scratch with Create Block Theme I opted to export the theme using the Export the activated theme with user changes option:
I got a zip bundle and uploaded to another site. On that new site I visited the editor and was shown a message Template part has been deleted or is unavailable: header (footer as well).
Workaround
I noticed then that the templates/index.html file part of the bundle created by the export was referring to the header part like this:
<!-- wp:template-part {"slug":"header","tagName":"header","theme":"new blank theme"} /-->
... while my original file (the one generated from scratch) read:
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
After removing "theme":"new blank theme" the template worked properly loading the index part.
How to reproduce
- On a fresh site, install Create Block Theme
- Visit Appearance -> Create Block Theme
- Create a blank theme. Name it Le Theme.
- Activate the Theme in Appearance -> Themes
- Export the theme: Visit Appearance -> Create Block Theme and export the theme. Keep the downloaded bundle somewhere.
- Deactivate and delete the recently created theme Le Theme: Visit Appearance -> Create Block Theme, switch to Twenty Twenty-Three, then delete Le Theme.
- Upload and activate the downloaded zip from step 5.
- Visit the Editor.
- Confirm the part is missing. Expect to see
Template part has been deleted or is unavailable: headerandTemplate part has been deleted or is unavailable: footermessages.
Metadata
Metadata
Assignees
Labels
No labels

