-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Migrate Site Editor menu item to Theme Editor #26890
Conversation
Size Change: 0 B Total Size: 1.19 MB ℹ️ View Unchanged
|
Awesome. Then it's actually my fault :) — I'll look into it. |
It's a good idea. Definitely a better spot for now. |
Im struggling to understand the reasoning behind the name change to "Theme Editor". Its already adapted to customize Template and Template Part CPTs to be used for your site. Creating and editing these aren't necessarily customizing your theme, and are not necessarily done for the purpose of theme building. Similarly, with the removal of widgets and customizer when this is active and the desire for this editor to fill in that functionality it is destined to be more than a 'Theme Editor'.
If I understood @mtias comments in the past, the goal is to build the Site Editor around templates first to support block based theme building and to adapt it towards supporting content editing after that foundational work is in place? The overall project has been "Full Site Editing", not "Theme Editing". The package has been edit-site, not edit-theme. This change in terminology seems like a large change in how we are viewing the projects scope. |
Without wanting to get too far in to the weeds, I do not think that is the case at all for this editor specifically. Rather, this editor is for templates / template parts as you described, and in the (near 🤞) future Global Styles. Those features combined make up the bulk of what a theme is. I did consider calling it "Template Editor" instead, but that does not satisfactorily encompass the Global Styles element.
That is exactly what we're doing. Just change the name "Site Editor" to "Theme Editor" for the reasons described above. Content editing will occur where it does currently, and once we begin rendering the template on the Canvas while doing so, the picture will become a lot clearer I think. |
While those reasons do make sense, I still think the term "Site Editor" is more fitting. It can be used to edit aspects of your site such as the title, description, non-theme specific CPTs, etc. While it is mostly geared around the Theme side at the moment, it still seems to make more sense to use a "Site Editor" as a tool to aid in theme building than to use a "Theme Editor" to manage any site specific data. |
I must say I'm not really convinced by the name change here. When I hear Theme editor, I'd assume the theme files are going to be updated when I save changes and this is not really what this screen is about. Even without the name change, some one raised that he was confused that it didn't touch the files and I believe we should make it more confusing. Also as raised above, we update post content, site content, and any renderend entity basically, so it's not just about templates. |
I would avoid replacing the code-based Theme Editor menu item. As for the name, I've been using variants of "site editing" for like 2 years now, so my opinion is biased and would need to time to adjust. |
That is a fair, albeit rather technical point. I'm not sure the average user would think this way, or be too worried either way if they did. I think that in general most folks understand that their 'theme' (regardless of whether that is files or database entries) governs how their site looks and is laid out at a high level, both of which are the chief focus of this editor.
The feedback I've heard is that editing content in the context of editing a template is confusing. Viewing content (perhaps in a dedicated mode) would be useful, but editing at the same time is overwhelming. In order to walk before we run I also think that we might be better off not allowing post content to be edited here, but that's something to be explored in another issue. |
Hmmm just my personal opinion here: The site editor is what it says: a "site" editor, not a "theme" editor. |
I don't think theme editor is suitable name, it is the site that is being edited and not the theme files. The users will not only use this to change theme settings, they may not even think of it as the theme. As they combine |
Closing for now. We can revisit later. |
In a recent change we updated the Appearance > Widgets menu item to link to the new block-based widget management view. In this PR I am proposing we take a similar approach with the Appearance > Theme Editor item.
The "Site Editor" that we are building – at this stage – is essentially a block-based modernisation of the currently code-based Theme Editor. It enables users to edit their templates and styles (when Global Styles comes online).
It is not 100% clear whether detailed content editing will ever occur here, so calling this environment a "Site Editor" is a little misleading. I suspect that what many expect of the "Site Editor" is actually what the content editor will become, once we load the full template on the canvas in that environment. Initial work has begun on that.
Before:
After: