-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
Description
This was brought to my attention by @carolinan over at WordPress/twentytwentytwo#256
When a theme doesn't provide a template for a specific page (404, Search for example) we will always fallback through the hierarchy and show in the frontend an alternative existing template. In the case of TT2, if the search.html doesn't exist, the frontend will show index.html instead:
This is inconsistent with what the flow of template creation is showing us. When you try to create a new Search template, we see no content at all:
This is inconsistent with what the user sees in the frontend before creating the template and forces them to create something from scratch.
Step-by-step reproduction instructions
- Install TT2, check in the frontend what a search results page returns
- Go to the Site Editor and try to create a Search template
- The Search template is empty.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
No labels