WordPress / create-block-theme

A WordPress plugin to create block themes

Home Page:https://wordpress.org/plugins/create-block-theme/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow editing template part names and categories from the editor

mikachan opened this issue · 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"
		}
	],

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.