Fixing Accessibility Issues in Elementor Toggle and Accordion Widgets
WCAG Focus: WCAG 2.1.1 (A), 4.1.2 (A), 2.4.3 (A)
Elementor’s Accordion and Toggle widgets are widely used for WordPress FAQs and product specs, yet older and default widget configurations frequently attach click handlers to <div> or heading elements without proper button semantics, keyboard Enter/Space support, or synchronized aria-expanded and aria-controls attributes. Screen reader and keyboard-only visitors may be unable to expand panels or know whether a section is open or collapsed.
Why This Pattern Violates WCAG
WCAG 4.1.2 Name, Role, Value (Level A) requires interactive accordion headers to expose a button role (ideally a native <button> nested inside the heading) along with an accurate aria-expanded="true|false" state.
WCAG 2.1.1 Keyboard (Level A) and WCAG 2.4.3 Focus Order (Level A) require accordion triggers to be reachable via Tab and activated with both Enter and Space keys without jumping focus unexpectedly.
Code Comparison
Inaccessible Elementor Accordion Header Markup
<div class="elementor-accordion-item">
<div class="elementor-tab-title" role="tab">
<span class="elementor-accordion-icon"><i class="fas fa-plus"></i></span>
<a class="elementor-accordion-title">How does automated scanning work?</a>
</div>
<div class="elementor-tab-content">...</div>
</div>
Compliant Accordion Trigger With Button & State Semantics
<div class="elementor-accordion-item">
<h3 class="elementor-tab-title">
<button
type="button"
class="elementor-accordion-title"
aria-expanded="false"
aria-controls="faq-panel-1"
id="faq-trigger-1"
>
How does automated scanning work?
</button>
</h3>
<div id="faq-panel-1" role="region" aria-labelledby="faq-trigger-1" hidden>
...
</div>
</div>
How to Fix It in WordPress
- Use a native <button type="button"> inside a proper heading level for each accordion or toggle trigger instead of a link without an href or a bare <div>.
- Ensure aria-expanded updates between "false" and "true" when toggled and aria-controls references the matching panel ID.
- Test opening and closing every accordion item with Tab, Enter, and Space.
Finding This Issue Automatically
Updating Elementor Accordion and Toggle widgets across an entire WordPress knowledge base or FAQ library manually requires custom JavaScript overrides. The WP ADA Compliance Check plugin detects and automatically corrects accessibility issues in Elementor Toggle and Accordion widgets on rendered pages.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

