#66331 closed defect (bug) (fixed)
Please add a skip link to the WP Admin Bar (wpadminbar)
| Reported by: | travisjeans | Owned by: | joedolson |
|---|---|---|---|
| Priority: | high | Milestone: | 7.2 |
| Component: | Toolbar | Version: | |
| Severity: | major | Keywords: | has-patch has-test-info commit |
| Cc: | Focuses: | accessibility |
Description
The [Wordpress admin bar](https://wordpress.com/support/admin-bar/) doesn't have a skip link, but it is a repeated block since it appears above every page when you're logged in as an administrator (or other kind of WordPress user). This is a part of [Bypass Blocks (Level A)](https://www.w3.org/WAI/WCAG21/Understanding/bypass-blocks) of the Web Content Accessibility Guidelines (WCAG).
If you're doing accessibility testing on a site or trying to access the main content, you have to tab past the items in the wpadminbar before every time you can even get to the website's Skip to Content link (assuming the theme has one, Twenty Twenty Four does).
Can we please have a skip link to this WP component to improve the accessibility of WordPress?
Attachments (5)
Change History (17)
#1
@
4 weeks ago
- Component Menus → Toolbar
- Milestone Awaiting Review → 7.2
- Version 7.1.3
The problem with this has always been that it's not readily possible to know what to skip *to*, since the theme controls the rest of the content. However, this is a solvable problem, by appending a target at the end of the admin bar when being viewed on the front-end, with a skip link that instead describes what you're bypassing, e.g. "Skip admin bar".
I'm actually somewhat surprised that we don't have an existing ticket for this; but I searched pretty thoroughly, and we don't.
This should be fairly simple to implement, so I'm going to go ahead and milestone it for 7.2, even though it's quite late in the cycle.
This ticket was mentioned in PR #14410 on WordPress/wordpress-develop by @rishabhwp.
4 weeks ago
#3
- Keywords has-patch added
When the toolbar is rendered on wp_body_open, it is the first thing on the page, so keyboard users must tab through every toolbar item before reaching the content.
This adds a "Skip toolbar" link as the first element of the toolbar, targeting an empty, focusable element (tabindex="-1") appended after the toolbar items.
- Only output on the front end, when the toolbar precedes the content.
- No change for themes without
wp_body_opensupport, which keep the existing "Skip to toolbar" link.
Use of AI Tools
AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Code Review & Writing test cases
#4
@
4 weeks ago
Thank you for addressing this so quickly. I agree it makes the most sense for the target of the skip link to be the end of the admin bar. Looking forward to being able to download this update!
#5
@
3 weeks ago
- Keywords has-test-info added
Test Report
Description
This report validates that the indicated patch works as expected.
Patch tested: https://github.com/WordPress/wordpress-develop/pull/14410
Environment
- WordPress: 7.2-beta1 + PR #14410
- PHP: 8.2.12
- Server: PHP built-in server
- Browsers: Firefox and Chromium (Playwright 1.49.1, real key presses)
- OS: Windows 11 (browsers in Docker)
- Theme: Twenty Twenty-Five, plus a minimal classic theme without wp_body_open
- Plugins: none
Actual Results
Keyboard sequence on the front end, logged in: Tab → Enter → Tab.
| Step | Before | After |
| Tab | Focus goes to the first toolbar item ("About WordPress") | "Skip toolbar" link appears |
| Enter | Focus stays in the toolbar | Focus moves to #wp-toolbar-skip-target |
| Tab | Focus stays in the toolbar | Focus moves to the theme's "Skip to content" link |
Same result in Firefox and Chromium.
Also checked:
- Classic theme without wp_body_open (toolbar printed in the footer): the existing "Skip to toolbar" link is unchanged.
- wp-admin: no change.
✅ The patch works as expected.
Supplemental Artifacts
Before (first Tab goes into the toolbar):

#6
@
3 weeks ago
I tested the patch and it seems to work which is awesome.
Maybe I'm overthinking it a little bit but would it be helpful to have an aria-label on the empty div target to say "end of toolbar" as audio feedback when using the Skip toolbar anchor link with a screenreader?
#7
follow-up:
↓ 8
@
3 weeks ago
That feels like overengineering to me, @travisjeans - there's really very little precedent for skip links having a requirement of a target with an accessible name, and it's not something that other skip links have.
#8
in reply to: ↑ 7
@
3 weeks ago
Replying to joedolson:
That feels like overengineering to me, @travisjeans - there's really very little precedent for skip links having a requirement of a target with an accessible name, and it's not something that other skip links have.
It's true that skip links don't usually have an accessible name if they are empty targets, but usually skip links go to a landmark like main (like Skip to Content) or maybe a heading that would be announced after using the skip link, if the target was a heading.
So, it's not necessary but I wondered if hearing the skip link target would be something that people who use screenreaders and use skip links would expect.
#9
follow-up:
↓ 12
@
8 days ago
I have two arguments against naming the target:
1) The only thing we actually know is that we've jumped to the end of the toolbar. We can't actually name the target in a meaningful way, as we have no way to know what has been skipped to. Naming as "End of Toolbar" doesn't feel adequate.
2) This is only going to be in use by people who are logged-in to the site, where there is some reasonable belief that they can learn the navigation mechanisms.
I'm also noting that skip links that target something like the main element are not announced, so the most common experience using a skip link doesn't come with any announcement of position. At some level, it seems unnecessary to state "we are at the end of the toolbar". If the skip link works, that's the assumed location; if it doesn't work, then...it didn't work, and any announcement is irrelevant.
I guess I tend to feel that a skip link tells you what it's going to do, and should only need an additional announcement if the actual behavior somehow deviates from that.
I'm going to go ahead and approve this as it is, as I think it is sufficient, and I'm not convinced that increasing the verbosity would actually benefit the user. If that proves to be wrong, we can also amend it in the future.
#12
in reply to: ↑ 9
@
3 days ago
Replying to joedolson:
I have two arguments against naming the target:
1) The only thing we actually know is that we've jumped to the end of the toolbar. We can't actually name the target in a meaningful way, as we have no way to know what has been skipped to. Naming as "End of Toolbar" doesn't feel adequate.
2) This is only going to be in use by people who are logged-in to the site, where there is some reasonable belief that they can learn the navigation mechanisms.
I'm also noting that skip links that target something like the
mainelement are not announced, so the most common experience using a skip link doesn't come with any announcement of position. At some level, it seems unnecessary to state "we are at the end of the toolbar". If the skip link works, that's the assumed location; if it doesn't work, then...it didn't work, and any announcement is irrelevant.
I guess I tend to feel that a skip link tells you what it's going to do, and should only need an additional announcement if the actual behavior somehow deviates from that.
I'm going to go ahead and approve this as it is, as I think it is sufficient, and I'm not convinced that increasing the verbosity would actually benefit the user. If that proves to be wrong, we can also amend it in the future.
Skip links that target something like the main element are announced upon using the skip link if you have verbosity settings on screen readers turned up like me. Sometimes when I don't hear any feedback, it means something I've bumped into (button, input, otherwise) is broken or missing a label.
That said, this might be a niche case and only going to be an issue for people using screen readers who also want constant feedback about actions (not sure if Cognitive Accessibility Design Pattern: Provide Feedback applies here). I also wonder if Status Messages (Level AA) applies? Maybe it doesn't fit the scope of a status?
That said, I agree it's more important to merge this (which is has been) because being able to bypass the admin bar is going to give a bigger benefit than the slight inconvenience or ambiguity of a lack of an announcement upon using this skip link.
This might be a situation where feedback from more users would be helpful.
Thank you again for this feature!

the Wordpress admin bar