Make WordPress Core

Opened 6 weeks ago

Closed 6 weeks ago

Last modified 5 weeks ago

#66235 closed enhancement (duplicate)

Toolbar: same site name menu in the admin and on the front end

Reported by: lucasmdo Owned by:
Priority: normal Milestone:
Component: Toolbar Version:
Severity: normal Keywords:
Cc: Focuses: ui, accessibility, administration, multisite

Description

This ticket proposes to make the site name menu in the Toolbar the same in the admin and on the front end. Same click, same menu, same icon.

Current behavior

The site name is the only item in the Toolbar that changes depending on where you are.

  • In the admin, a click on the site name goes to the site. The menu has only one item, Visit Site.
  • On the front end, a click on the same site name goes to the Dashboard. The menu has Dashboard, Plugins and Themes.
  • When the site has no site icon, the icon also changes. It is a house in the admin and a gauge on the front end.

The same control does different things in different places. It is hard to learn what it does, people need to check where they are before they click.

Since 7.1 the Toolbar is also displayed in the editors. There, the menu only has Visit Site, so there is no direct link to the Dashboard.

Proposal

The site name works the same everywhere.

  • Click: the site name always goes to the site. It is the same as the first item of the menu, Visit Site.
  • Menu: the same items everywhere. Visit Site, Dashboard, Plugins and Themes. On multisite, Manage Site comes right after Visit Site.
  • Icon: the site icon when the site has one, as it works since 7.1. When the site has no site icon, the same default icon everywhere.

Single site:


Multisite:


Why

  • One behavior to learn. People learn the site name menu once, and it works everywhere.
  • Clearer control. The site name and the site icon represent the site. I believe a click that goes to the site is what people expect.
  • A more useful menu. In the admin and in the editors, the menu gets direct links to the Dashboard, Plugins and Themes.
  • Better on touch screens. A tap on the site name opens the menu. Today, in the admin, that menu has a single item.

Accessibility

  • Keyboard and focus behavior does not change.
  • The menu has the same items in the same order everywhere. It is more predictable for screen reader users.
  • The icon is decorative. The site name stays next to it.

Backward compatibility

  • One behavior changes. On the front end, a click on the site name goes to the site and not to the Dashboard. The Dashboard is still in the menu.
  • People only see the items they have access to, same as today.
  • Classic themes keep their extra items (Widgets, Menus, Background and Header) after Themes.
  • The menu items keep their IDs. Plugins that add items to the site name menu keep working.
  • #28398 and #19184 asked for a similar change years ago and were closed. Since then, the site name got the site icon and the Toolbar is displayed in the editors.
  • #65088 site icon in the Toolbar.
  • #65091 Toolbar in the Site Editor and Block Editor.

Attachments (2)

site-name-menu-single-site.png​ (203.1 KB ) - added by lucasmdo 6 weeks ago.
site-name-menu-multisite.png​ (274.5 KB ) - added by lucasmdo 6 weeks ago.

Download all attachments as: .zip

Change History (4)

#1 @lucasmdo
6 weeks ago

  • Resolution → fixed
  • Status new → closed

I am closing this ticket in favor of #66258. The new ticket covers the W and the site name together, so the discussion stays in one place.

#2 @sabernhardt
5 weeks ago

  • Keywords needs-patch needs-design-feedback removed
  • Milestone Awaiting Review
  • Resolution fixed → duplicate

Duplicate of #66258.

Note: See TracTickets for help on using tickets.