Skip to content

Site Editing: Add option to preview template  #28208

Description

@annezazu

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:

  1. Install Gutenberg 9.7+ and a FSE ready theme.
  2. Go to Pages > Add New
  3. Make some changes to the page > Save Draft or Publish.
  4. Use the option to edit the template to switch into template editing mode in the post settings section.
  5. Make some changes to the template.
  6. See that there's no option to preview the changes.

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:
Screen Shot 2021-01-14 at 3 48 23 PM

Site Editor > Selecting a template:
Screen Shot 2021-01-14 at 3 48 05 PM

WordPress information

  • WordPress version: 5.6
  • Gutenberg version: 9.7.2
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes, TT1 blocks

Metadata

Metadata

Assignees

No one assigned

    Labels

    General InterfaceParts of the UI which don't fall neatly under other labels.Needs Design FeedbackNeeds general design feedback.[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Type] EnhancementA suggestion for improvement.
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions