Omnipresent toolbar: show site icon instead of dashicon if set#79049
Conversation
|
Flaky tests detected in 64e8e1a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/27266759275
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
|
||
| $css = <<<CSS | ||
| #wpadminbar #wp-admin-bar-site-name.has-site-icon > .ab-item:before { | ||
| content: none; |
There was a problem hiding this comment.
Is this guaranteed to load after core's admin CSS?
da872b6 to
64e8e1a
Compare

What?
Part of #79036
This PR replaces the home / odometer dashicon, with the actual site icon, if set, in the admin bar. The icon will be 20x20px, with border-radius of 2px and background-color of
#f0f0f1. If the site has not set site icon, then the default dashicons (home / odometer) is NOT changed.This will be gated in the existing "Omnipresent Toolbar" Gutenberg experiment. Original Core PR: WordPress/wordpress-develop#11781
Why?
There are three main reasons:
Post Editor
Site Editor
How?
Testing Instructions
Go to Gutenberg -> Experiments, scroll all the way down, then enable the following experiment:
Then, go to Settings -> General, upload a site icon, then verify it appears in the admin bar as shown in the below screenshots.
Screenshots or screencast
Before
After
Before (mobile)
After (mobile)
Use of AI Tools
I used Codex with GPT-5.5 to help with the CSS implementation, with my supervision.