create-block-theme icon indicating copy to clipboard operation
create-block-theme copied to clipboard

Allow editing template part names and categories from the editor

Open mikachan opened this issue 1 year ago • 1 comments

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 avatar May 24 '24 13:05 mikachan

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.

creativecoder avatar May 25 '24 14:05 creativecoder