-
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
Site Editing: Add option to preview template #28208
Comments
Pulling in some feedback from a recent WP Tavern post that feels both relevant and reflective of wider feedback I've seen:
|
Moreover, the "Preview in Desktop/Tablet/Mobile" doesn't show a real preview of the Frontend and its stored HTML but only resizes the Editor to different sizes, causing the experience commented in WP Tavern. Such experience could be improved with a "Preview Site" or "Browse Mode" as described in #29398 and #23328, respectively. |
Can this be prioritised again, please? |
Now that content editing is possible in the Site Editor, the logical next step is to consolidate template editing there, which would supersede the template editing mode in general. I don't think this is actionable and we can close it, as it will be solved by such consolidation; what do you think, @annezazu? |
I disagree. I think the ability to change templates and then preview those changes is still needed. Right now, there isn't an option to swap templates when editing pages in the Site Editor: #51477 When that's implemented, afaik, this same problem will remain. Until you save changes, you won't be able to preview. Am I missing anything? |
I don't think you are. I think it's likely more actionable to make these improvements in the Site Editor and consolidate all template editing there (even when entering template editing mode from the post editor) than iterating the template editor itself. Let's keep it open then until we have more clarity on where template editing from the post editor is going to go :) |
+1. I would really love to be able to preview changes before saving a template. |
Noting that you can now preview a template when writing a post as of WP 6.6.1: preview.template.works.movHere's an example where I use the template editor to change the placement of the feature image and it properly shows the changes when previewing in the editor. However, if I try to preview in a new tab, the changes aren't reflected: preview.template.works.movThis leaves us in a better state! I wonder what's needed for the final step of having the template changes previewable on the front end. |
Could be interesting to potentially expose that option in the preview dropdown, rather than buried in the template setting. |
Is this technically possible? Would you just preview any relative content?
This is less and less prevalent. I suspect the idea of previewing changes before their "published" itself is becoming obsolete. |
Anecdotal but it’s most definitely not obsolete for me. |
It's not obsolete today, but certainly on that path. I'm curious if we should invest effort into previewing templates, which is unlikely to be a clear implementation + experience. |
Description
Currently, when using the template editing flow as described in this call for testing, there's not a way to preview the changes. However, if you edit the same template using the Site Editor, an option is available to preview the template on desktop/mobile/tablet.
Step-by-step reproduction instructions
Please list the steps needed to reproduce the bug. For example:
Expected behaviour
I expect there to be a way to preview the changes similar to the ability to do so when using the Site Editor experience.
Actual behaviour
There's no way to preview the changes
Screenshots or screen recording (optional)
Here's a quick recording showing the two experiences: https://cloudup.com/cPYwQ1FAA_p
Page > Template editing:
Site Editor > Selecting a template:
WordPress information
The text was updated successfully, but these errors were encountered: