IMG A11Y
img-a11y
IMG A11Y is a free WordPress® plugin that enhances image accessibility by adding fields for decorative image marking and accessibility prompts to the WordPress® media editor.
It validates images on post save to ensure all images meet accessibility requirements, promoting better compliance with web accessibility standards.
Features
- Decorative Image Marking: Add a checkbox in the media editor to mark images as decorative, indicating they do not require alt text.
- Alt Text Enforcement: Prevent saving posts or media if images are missing alt text and are not marked as decorative.
- Gutenberg and Classic Editor Support: Works seamlessly with both Gutenberg and Classic WordPress® editors.
- Admin Accessibility Overview: Provides an admin page listing images without alt text and offers statistics on image accessibility compliance.
- Automatic Updates: Integrated with GitHub for automatic updates of the plugin.
Installation
-
Download the Plugin: Clone or download the plugin files from the GitHub repository.
-
Upload to WordPress®:
-
Via Admin Dashboard:
- Navigate to
Plugins
>Add New
. - Click
Upload Plugin
. - Choose the
img-a11y.zip
file you downloaded. - Click
Install Now
, thenActivate
.
- Navigate to
-
Via FTP:
- Extract the
img-a11y.zip
file. - Upload the extracted
img-a11y
folder to yourwp-content/plugins/
directory. - Go to
Plugins
in your WordPress admin dashboard and activate IMG A11Y.
- Extract the
-
Usage
Marking Images as Decorative
-
Edit an Image:
- Go to
Media
>Library
and select an image to edit. - In the attachment details, you'll see a new checkbox labeled Mark as Decorative.
- Go to
-
Mark as Decorative:
- If the image is purely decorative and doesn't add informative content, check the Mark as Decorative box.
- This indicates that the image does not require alt text for accessibility purposes.
Alt Text Validation
-
On Post Save:
- When saving a post, the plugin checks all images in the content.
- If any images lack alt text and are not marked as decorative, the save operation is blocked.
- An error message is displayed:
Save failed: Please ensure all images in the content have alt tags or are marked as decorative for accessibility.
-
In Media Library:
- When editing media, if an image lacks alt text and is not marked as decorative, saving is blocked.
- An error message is displayed:
Save failed: Please provide an Alt tag for accessibility or mark the image as decorative.
Admin Accessibility Overview
-
Access the Overview:
- Navigate to
Media
> IMG A11Y in the WordPress admin dashboard.
- Navigate to
-
Features of the Admin Page:
- Statistics: View counts of decorative images, non-decorative images without alt text, and non-decorative images with alt text.
- Filtering: Click on the statistics boxes to filter and list specific groups of images.
- Image Listing: See a table of images based on the selected filter, including thumbnails, IDs, titles, and file links.
Contributing
Contributions are welcome! Please follow these steps:
-
Fork the Repository: Click on the
Fork
button in GitHub. -
Clone Your Fork:
git clone https://github.com/your-username/img-a11y.git
-
Create a Branch:
git checkout -b feature/your-feature-name
-
Make Changes: Implement your feature or fix.
-
Commit Changes:
git commit -m 'Add new feature'
-
Push to GitHub:
git push origin feature/your-feature-name
-
Create a Pull Request: Submit your PR for review.
License
This plugin is licensed under the GPL-2.0+ license. See the https://github.com/robertdevore/img-a11y/LICENSE file for details.
The following is a list of the most recent releases for this plugin.
-
1.0.0 - 1.0.
SHA256 hash:c0e0c5fb1d9ae768af98516cdba0515692f2e81344d20da9215c870b1ff17a2c
The following is a list of the most recent issues for this plugin.
Hash Verification
ZIP files downloaded via this site have an associated SHA256 hash.
Mac
On Mac, you can use the sha256 command to calculate the hash of a downloaded ZIP file. Open terminal and execute:
sha256 [filename]
Where [filename] is the name of the ZIP file. If the hash matches the one on the website, the ZIP file is genuine.
Linux
On Linux, you can use the sha256sum command to calculate the hash of a downloaded ZIP file. From a shell, execute:
sha256sum [filename]
Where [filename] is the name of the ZIP file. If the hash matches the one on the website, the ZIP file is genuine.
Latest Release
The latest official release is below.
1.0.
Download 1.0.0c0e0c5fb1d9ae768af98516cdba0515692f2e81344d20da9215c870b1ff17a2c
Github Repository
This project is located on Github in the repository robertdevore/img-a11y.
Star Support Project