WordPress / WordPress/create-block-theme
Allow editing template part names and categories from the editor
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 417
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Description
We should consider allowing users to edit template part names and categories and then save these changes to the current theme.json file.
e.g. This part of theme.json:
"templateParts": [
{
"area": "uncategorized",
"name": "comments",
"title": "Comments"
},
{
"area": "header",
"name": "header",
"title": "Header"
},
{
"area": "footer",
"name": "footer",
"title": "Footer"
}
],
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
No files, tests, or entry points are mentioned. Start by locating the editor flow for template parts and the code that reads and writes the current theme.json file. Define how names and categories are edited, validated, and persisted, then add coverage for the resulting theme.json changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100