The Problem
With Block Based Themes and Block Templates, when creating/editing a post, you have to jump through a few hoops to discover which Block Template will be used when it gets displayed, which could get tedious, and result in user confusion.
For a blog titled Hello World
, these are the current steps required to discover which Block Template will be used:
wp-admin
, navigate to the Appearance > Templates
page and search for the slug which matches the post in question. Search for the word "single", and analyze the results to see if any would match your post:single-post-hello-world
single-post
single
single-post-hello-world.html
single-post.html
single.html
single-post-hello-world.php
single-post.php
single.php
While this process of hunting for the right source file isn't new to theme developers, it will be new to users, who now have the ability to create Block Templates.
To me, this process feels like a bit of a wild-goose-chase 馃, especially when it's information we can easily provide!
Describe the solution you'd like
When editing a post, I would like to see an indication of which Block Template will be used as the source. Here's a mockup of a possible solution:
While that mockup is one approach, I can already see it leading to questions from the user, wondering why they can't just change the template. So perhaps it's better living outside a "settings" area, like in the admin bar.
Regardless of where it might ultimately fit best, I think this could be a huge time-and-confusion-saver which helps users discover why their posts/pages look the way they do.
Thanks for opening this, it's a must-have!
Another mockup idea is to do something similar to the "Permalink" section in the Document sidebar:
With fullscreen mode becoming the default, I think moving away from using the wp-admin bar for this is a good idea.
It would be very helpful to have the post/page template name and link just below the Publish link.
Just n'thing this; I was about to report this today because I couldn't figure it out.
This is still applicable as of July 7, 2020 commit (51256763abb2f54fa66ebfa7b6e1e5efb6eb5210)
Most helpful comment
Thanks for opening this, it's a must-have!