Skip to content

Block Theme Previews: add option to switch between different themes to preview #50918

Open

Description

@annezazu

This was raised by @carolinan as part of the FSE Outreach Program's Rapid Revamp call for testing:

Once I clicked on the Live Preview link and entered the Site Editor with the Navigation Sidebar (the dark grey menu area) on the left, I was expecting to be able to navigate between all the installed block themes and WordPress.org block themes, similar to how the preview of classic themes work.

Here's the experience with classic themes to imagine for block themes in the Site Editor previewing mechanism:

classic.theme.preview.mov

I remember seeing some designs floating around that considered this. cc @WordPress/gutenberg-design just in case!

Activity

  1. added
    [Type] Enhancement
    [Feature] Themes
    on May 24, 2023
  2. annezazu commented on May 24, 2023

    @annezazu
    ContributorAuthor

    Huzzah, found the design showing access to block themes from the Design section.

    237068191-90aff2c6-ad59-4359-83c6-7a8f22f6c72d

    Worth reusing here :)

  3. jasmussen commented on May 25, 2023

    @jasmussen
    Contributor

    I think @jameskoster has a separate issue for the "meta links" in the save hub, and has a newer design for themes access.

  4. jameskoster commented on May 25, 2023

    @jameskoster
    Contributor

    and has a newer design for themes access

    This one:

    Screenshot 2023-05-25 at 14 25 01

    Perhaps there's a way for that element to accommodate inline theme switching, rather than sending folks off to the legacy themes grid in wp-admin?

    Theme

    The theme switch can be expressed in the save modal:

    Screenshot 2023-05-25 at 14 49 03

    The trade-off with this approach is that it would only be able to handle block themes.

  5. richtabor commented on May 25, 2023

    @richtabor
    Member

    Perhaps there's a way for that element to accommodate inline theme switching, rather than sending folks off to the legacy themes grid in wp-admin?

    I don't think it's particularly useful without visuals representing the themes (like classic has). Seems a bit too forward-facing too to have theme switching accessible from the main SE navigation. I think a "Browse themes" link would work fine until a future where there is theme switching (including partial theme switching) in the SE.

  6. scruffian commented on May 25, 2023

    @scruffian
    Contributor

    It's technically very easy to do: #50388

  7. jameskoster commented on May 26, 2023

    @jameskoster
    Contributor

    I think a "Browse themes" link would work fine until a future where there is theme switching (including partial theme switching) in the SE.

    I agree this would be a satisfactory bare minimum.

    But it would be nice to have quick switching while previewing a theme. It's currently a very tedious process (see the video in Ben's PR).

  8. added
    Needs Design
    on May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs Design[Feature] Themes[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions