WordPress / WordPress/create-block-theme
'Save changes to theme' re-categorises 'Header' and 'Footer' template parts as 'General'
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
Hey folks,
'Header' and 'Footer' Template Parts can be created via the 'Add new pattern' UI in the site editor. Header, Footer and General are the options available. These work as expected, creating the appropriate Template Part.
However, when the 'Save changes to theme' feature on the Create Block Theme wrench menu is used to save the new Template Parts back to the file system, they are re-categorised as regular ('General') Template Parts, not Header or Footer parts.
Before 'save changes to theme':
After 'save changes to theme':
WordPress v6.6, Create Block Theme v2.3.0, Blank theme (Created using Create Block Theme) on a clean WP install running on LocalWP.
I assume this is a bug and not intentional behaviour?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue in the WordPress site editor with the Create Block Theme wrench menu on a clean install, creating Header and Footer template parts before using “Save changes to theme.” Compare the template-part categories before and after saving; done means Header and Footer remain correctly categorized instead of becoming General.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100