Skip to content
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

Full Site Editing/FSE: Creating New Template Issue #59581

Open
retnonindya opened this issue Dec 28, 2021 · 5 comments
Open

Full Site Editing/FSE: Creating New Template Issue #59581

retnonindya opened this issue Dec 28, 2021 · 5 comments
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Goal] Full Site Editing [Pri] Normal Schedule for the next available opportuinity. Triaged To be used when issues have been triaged. [Type] Bug User Report This issue was created following a WordPress customer report

Comments

@retnonindya
Copy link

Quick summary

Creating a new template is quite tricky. There is a "Add New" button that somehow will only open the Front Page template (what if the user wants to create a completely new template?) -- and the button will go missing once the Front Page template is created -- and creating a new template from the page/post editor sidebar pops up an error.

Steps to reproduce

There are two ways of creating a new template, and both of them need improvements.

Creating a new template from Templates section:

  1. Go to Appearance section, then click "Editor". This will open template editor as expected.

  2. Click the dropdown arrow on the header area. Click "Browse all templates".

Screenshot 2021-12-28 at 3 06 38 PM

  1. Once clicked, see the Templates area. See "Add New" button on the top right corner. When clicked, it will only provide option "Front Page Template", and nothing more (you can't create a new template).

Screenshot 2021-12-28 at 2 59 54 PM

  1. When you returned to the Templates area, notice the "Add New" button is no longer there.

Screenshot 2021-12-28 at 3 00 09 PM

Why this is important: "Add New" button gives understanding that users can create templates as many as they want. To have "Add New" button disappears can be quite confusing.

Create a new template from post/page sidebar:

  1. Open/edit a post or a page.

  2. On the sidebar, notice "Template" tab. Click on it, and click "New" to create a new template.

  3. Name the new template.

Screenshot 2021-12-28 at 3 00 45 PM

  1. Notice the editor switched to template format. This is expected. Then, add some blocks or change some blocks there.

Screenshot 2021-12-28 at 3 01 22 PM

  1. Click "Update" to save the changes. Notice the prompt that the action will save both the page and the template.

Screenshot 2021-12-28 at 3 01 35 PM

  1. See error appearing:

Screenshot 2021-12-28 at 3 01 46 PM

The error appears on another issue (switching template):
#59570

The template, however, is visible and actually saved on Templates section (this is the WP Admin view: ...wp-admin/edit.php?post_type=wp_template):

Screenshot 2021-12-28 at 3 02 41 PM

... And on Templates area:

Screenshot 2021-12-28 at 3 15 15 PM

Why this is important: The error message will definitely caused confusion and frustration on users.

What you expected to happen

For users to be able to create templates, no matter from where they are coming from (either from Templates section or from post/page editor sidebar)

What actually happened

Missing "Add New" button on Templates section and error message when saving a template

Context

Personal testing on my personal site. FSE active, Free plan.

Simple, Atomic or both?

Simple

Theme-specific issue?

No response

Browser, operating system and other notes

No response

Reproducibility

Consistent

Severity

Most (> 50%)

Available workarounds?

Yes, difficult to implement

Workaround details

I have been tinkering with FSE for a couple of weeks, and I found it's really easy to create a new template from WP Admin:
WEBSITEADDRESS/wp-admin/edit.php?post_type=wp_template

I'm not sure how we want to use this, but maybe as a fallback, we can add the Templates section? I noticed it was there 1-2 weeks ago:

Screenshot 2021-12-21 at 11 56 48 AM

(Please disregard the red box on "Editor" section -- I use it for my personal blog purpose. Notice there are "Templates" and "Template Parts" after "Editor")

@retnonindya retnonindya added [Type] Bug User Report This issue was created following a WordPress customer report labels Dec 28, 2021
@retnonindya retnonindya added the [Pri] High Address as soon as possible after BLOCKER issues label Jan 4, 2022
@kimerlin81
Copy link

Thanks @retnonindya -

I was able to reproduce the add new template (front page template only) and the missing new template button issues on both Atomic and Simple test sites.

I was only able to replicate the save error in step 6 when I tested on a Simple test site.

@kimerlin81 kimerlin81 added Triaged To be used when issues have been triaged. [Feature] Post/Page Editor The editor for editing posts and pages. labels Jan 4, 2022
@eduardozulian
Copy link
Member

Also reproduced during our team testing: p7BLOB-4mD-p2#comment-5292

@joweber123
Copy link

I also just came across this when I was doing testing on my own today. I expected that I would be able to create a completely new template from the screen below and I was confused that I was only shown the option to add a new "Front Page" template.

Markup on 2022-02-10 at 12:02:27

@creativecoder
Copy link
Contributor

I believe improvement to template creation and management are planned for Gutenberg, leading up to WP 6.0. Here are a few issues I found in the Gutenberg repo, related to this

@Addison-Stavlo Addison-Stavlo added [Pri] Normal Schedule for the next available opportuinity. and removed [Pri] High Address as soon as possible after BLOCKER issues labels Mar 16, 2022
@creativecoder
Copy link
Contributor

Setting this to normal priority, since the error that was part of the initial report was resolved. Addressing what remains needs significant feature development in Gutenberg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. [Goal] Full Site Editing [Pri] Normal Schedule for the next available opportuinity. Triaged To be used when issues have been triaged. [Type] Bug User Report This issue was created following a WordPress customer report
Projects
None yet
Development

No branches or pull requests

7 participants