Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow editing template part names and categories from the editor #653

Open
mikachan opened this issue May 24, 2024 · 1 comment
Open

Allow editing template part names and categories from the editor #653

mikachan opened this issue May 24, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mikachan
Copy link
Member

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"
		}
	],
@mikachan mikachan added the enhancement New feature or request label May 24, 2024
@creativecoder
Copy link
Contributor

It looks like you can name the template part and set the area when it's created:

Screenshot 2024-05-25 at 15 56 51

But when exporting the changes to the theme with Create Block Theme, only the template part file is created. The name, title, and area of the template part are not added to the templateParts key of theme.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants