Accessibilitor
Accessibility plugin for Wordpress, WCAG 2.2-combatible
by Marcin Wójcik · github.com/zeulus/wp-accessibilitor · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/zeulus/wp-accessibilitor/archive/refs/heads/main.zipAccessibility toolbar for WordPress (Polish name: Dostępnik). A small floating button opens a panel of display adjustments:
- Larger / smaller text (three steps; scales the whole page except the toolbar)
- Grayscale
- High contrast — black background, white text, yellow links (21:1)
- Negative — inverted colours, photos and videos shown normally
- Light background — white background, black text, dark blue links
- Underline links
- Readable font
- Reset
Below the buttons you can show up to four links — e.g. your accessibility statement, accessibility report and action plan, which public bodies in many countries are required to publish.
The plugin also improves embedded videos: iframes without a title get one (WCAG 4.1.2), YouTube embeds are switched to youtube-nocookie.com and lazy-loaded.
Everything runs in the visitor's browser. No external services, no cookies, no tracking. Preferences are kept in localStorage only.
Built for keyboard and screen-reader users: aria-expanded, aria-pressed, a labelled region, Escape closes the panel, visible focus.
Installation
- Copy the
accessibilitorfolder (or this repository) towp-content/plugins/and activate the plugin. - Go to Settings → Accessibility, choose the buttons you want and add your links.
Requires WordPress 6.4+ and PHP 8.0+.
For theme authors
Text-size modes use CSS zoom on the direct children of <body> (except the toolbar). The header's inline size shrinks in CSS pixels, so a menu built with a container query (container-type: inline-size on the menu wrapper) switches to its mobile layout instead of overflowing. Media queries alone do not react to zoom.
Modes are classes on <html>: accessibilitor-fs-1..3, accessibilitor-grayscale, accessibilitor-contrast, accessibilitor-negative, accessibilitor-light, accessibilitor-underline, accessibilitor-font.
Development
- Source strings are English; translations live in
languages/(Polish included). Regenerate withwp i18n make-pot . languages/accessibilitor.potandwp i18n make-mo languages. - Coding standard: WordPress Coding Standards (
phpcs --standard=WordPress).
License
GPL-2.0-or-later. See LICENSE.