Inaccessible Elementor Galleries
WCAG Focus: WCAG 1.1.1 (A), 2.1.1 (A), 4.1.2 (A)
Elementor’s image gallery, icon box, and image box widgets make building visual grids effortless, yet default configurations often render clickable tiles with broken anchor behaviors, empty links, adjacent duplicate links, or missing accessible names.
Why This Pattern Violates WCAG
WCAG 1.1.1 (Level A), 2.1.1 Keyboard (Level A), and 4.1.2 Name, Role, Value (Level A) require gallery items and lightbox controls to carry accessible names, keyboard focusability, and clean link structure.
Code Comparison
Typical Inaccessible Gallery Tile Pattern
<div class="elementor-gallery-item" data-lightbox="yes">
<div class="e-gallery-image" style="background-image:url('photo.jpg')"></div>
</div>
Compliant Accessible Gallery Link Pattern
<a href="/photo-large.jpg" class="gallery-item-link">
<img src="/photo-thumb.jpg" alt="Accessible ramp entrance at main building">
</a>
How to Fix It in WordPress
- Populate alt text on every image in the Media Library before inserting it into an Elementor Gallery.
- Verify keyboard users can Tab through gallery items and close lightboxes with Escape.
Finding This Issue Automatically
Page-builder gallery markup looks flawless visually while hiding missing alt attributes, empty links, or adjacent duplicate links underneath. The WP ADA Compliance Check plugin flags inaccessible Elementor Galleries and will automatically fix empty links, adjacent identical links, and anchor behaviors in Elementor icon, image box, and theme widgets.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

