Accessibility snippets

Small fixes that make your site easier to use with a keyboard and a screen reader.

Showing 10 snippets

Accessibility PHP Stop Videos Autoplaying Remove autoplay from Video and Cover blocks so videos only play when visitors press play, and add controls where they're missing. Beginner WP 7.1 Accessibility CSS Add the Screen Reader Text CSS Add WordPress's standard .screen-reader-text class for themes that are missing it, so hidden labels stay hidden visually but are still read out. Beginner WP 7.1 Accessibility PHP Make Wide Tables Scrollable and Labelled Let wide Table blocks scroll sideways on phones, and make the scroll area reachable and announced for keyboard and screen reader users. Intermediate WP 7.1 Accessibility PHP Add a Skip to Content Link for Accessibility Inject a visually hidden 'Skip to content' link at the top of every page that becomes visible on keyboard focus, allowing keyboard and screen reader users to bypass repeated navigation. Beginner WP 7.1 Accessibility PHP Add ARIA Labels to WordPress Navigation Menus Automatically add descriptive aria-label attributes to WordPress navigation menus based on their registered location, helping screen readers distinguish between multiple nav elements on the same page. Beginner WP 7.1 Accessibility CSS Show Clear Focus Outlines for Keyboard Users Give links, buttons and form fields a strong, visible outline when they're reached with the keyboard, without showing it on mouse clicks. Beginner WP 7.1 Accessibility CSS Turn Off Animations for People Who Prefer Reduced Motion Stop animations, transitions and smooth scrolling for visitors who have turned on "Reduce motion" on their device. Beginner WP 7.1 Accessibility PHP Tell Screen Reader Users When a Link Opens a New Tab Add hidden "(opens in a new tab)" text to links in posts that open in a new tab, so screen reader users aren't surprised. Intermediate WP 7.1 Accessibility CSS Underline Links in Post Content Underline links inside posts and pages, so they can be spotted without relying on colour alone. Beginner WP 7.1 Accessibility PHP Warn About Images Without Alt Text in the Editor Show a warning in the block editor listing images that have no alt text, so writers can fix them before publishing. Intermediate WP 7.1

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only