Press Tab on your home page and watch where the focus goes. On many WordPress sites it disappears into the header, hops through twenty menu links and only then reaches the content. A screen reader user hears “navigation, navigation, navigation” with no way to tell the main menu from the footer menu. These fixes take an afternoon.
1. Give every menu a name
A page usually has several <nav> areas: the main menu, a footer menu, social links, breadcrumbs. Screen readers list them by name, so “Main menu” and “Footer menu” are far more useful than three unnamed “navigation” landmarks.
wp_nav_menu() accepts a container_aria_label argument, and our snippet sets it for each menu location you list, so every menu gets its own short name:
Keep labels short and don’t include the word “navigation”: screen readers already say it. “Main” is read as “Main, navigation”.
Using a block theme or a page builder? The snippet only affects classic menus printed with wp_nav_menu(). In block themes, select the Navigation block and set its label under Advanced. In Bricks, the Nav Menu element has its own ARIA label setting.
2. Add a skip link
A skip link is the first focusable thing on the page. It stays hidden until a keyboard user presses Tab, then appears as “Skip to content” and jumps straight past the header.
Point it at the element that wraps your main content, and make sure that element has a matching id. If your theme already has a skip link, check it works: many point to an id that no longer exists.
The skip link and other hidden labels rely on a “screen reader text” class that hides text visually but keeps it readable. Block themes and page builders don’t always include it:
3. Make focus visible
Some themes remove the focus outline because it “looks messy” when clicking. Keyboard users then have no idea where they are. Use :focus-visible, which only shows the outline when someone is using the keyboard:
/* A clear focus ring for keyboard users only. */
:where(a, button, input, select, textarea, summary):focus-visible {
outline: 3px solid #6F58CA;
outline-offset: 3px;
border-radius: 4px;
}Pick a colour with strong contrast against both your header and your page background. Check the menu, buttons, form fields and any dropdowns.
4. Say when a link opens a new tab
Links that open a new tab without warning disorient screen reader users, who suddenly find the Back button doesn’t work. The snippet adds hidden text, “(opens in a new tab)”, to every link in your post content with target="_blank":
5. Respect reduced motion
Some people get dizzy or nauseous from sliding menus, parallax and auto-playing animations. Their device can tell your site with the prefers-reduced-motion setting:
Test it in five minutes
These fixes help a lot, but they aren’t a full accessibility audit. Colour contrast, form labels, headings and image alt text matter just as much. Our snippet library has tools for alt text in the media library too.
Check your understanding
Was this helpful?
Sorry about that. What was missing?
Thanks for your feedback!

