Repository navigation
Use one document title bar for every content type - #266
Merged
Merged
Conversation
|
Try this branch in WordPress Playground, with a WooCommerce shop, for an AI agent to drive, or on a blank site with WordPress's default theme. All run the latest build of To start in a workspace other than Default, open it in Writing, Builder or Selling. |
Collaborator
Author
|
@scruffian this is a normalization effort in light of your chanegs to the overall chrome |
getdave
force-pushed
the
getdave/title-area-ui-normalization
branch
from
November 20, 2026 23:07
f15c33b to
33ed7f9
Compare
Layouts, system pages, the header and the footer now show their name in PageSwitcher, the bar pages use, marked as shared with a purple globe, name and meta. The header and footer bar doesn't open the page finder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
getdave
force-pushed
the
getdave/title-area-ui-normalization
branch
from
November 20, 2026 23:15
33ed7f9 to
65be8c7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This makes the document title bar in the middle of the canvas toolbar the same whatever you're editing. Until now a page had one design, the search-style bar, while layouts, system pages, the header and the footer had a separate, older one, a two-line purple title with an icon. Two designs for the same job means two things to keep up to date, and the older one had already fallen behind.
So every content type now uses one bar,
PageSwitcher. Where layouts and template parts genuinely differ, the bar handles it with small variations rather than a separate design.How does the one bar handle shared things?
Changing a layout or template part changes every page that uses it, and people still need to know that. The bar shows it in three ways.
On the header and footer screens, the bar doesn't open the page finder (
canSwitch={ false }). Those screens are about the part, so the bar just names it. It keeps the same shape and position.What changes in the code?
PageSwitchertakes two new props.sharedmarks the bar as shared and holds the globe's tooltip, andcanSwitchturns off the finder.PageSwitcherin place of their own title markup..is-globaltitle styles are gone, since nothing uses them any more.How do I test it?
/types/post/list/all?content=templates). It's the same bar again, reading "Single Post · Layout" in purple, and clicking it opens Go to page.Open question
Should layouts stop opening the finder too? I've left it on because layouts are listed under Pages and Posts, but I could go either way.
🤖 Generated with Claude Code