-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Use template editing mode when editing a template via Appearance > Templates #35990
Comments
Agreed, that it is using the post editor mode is something that has been confusing to both users and developers when I have tried to explain how templates work. |
So where would the edit link lead to if the template is not assigned to a post/page/custom post type? Especially if the site editor is not in 5.9. If it is in 5.9, I think the edit link would need to go there. |
The site editor uses a URL format with the theme name and the name (slug) of the template. The edit link in the appearance > templates view would need to be updated to point to the site editor. |
This is a template editing environment, so my expectation would be that they all link to a view where you edit the template, not the content. Something like: In the future it might be nice to preview different items of compatible content while editing the template, but that doesn't seem essential for now. |
Please look at addressing #36060 as a follow-up to this, because the post editor mode did enable access to revisions and the new mode should enable similar access. |
Currently, if you navigate to Appearance > Templates and open a template, the post editor mode is used. IE the content area is squished into a narrow column, and the document title is visible on the canvas.
This should instead use the same mode as when you edit a template in the site editor, or via the "Template" section of the Inspector when editing a post.
The text was updated successfully, but these errors were encountered: