- Guide
- Intermediate
- 5 minutes read
- Reviewed August 5, 2026
- WordPress themes and templates
A WordPress theme shapes much of the semantic structure and interaction visitors experience.
It controls landmarks, navigation, focus styles, typography, responsive layouts and the markup surrounding content. A strong theme creates an accessible foundation, but no theme can guarantee accessibility when content, plugins or customizations introduce barriers.
Semantic Structure and Landmarks
Templates should use meaningful HTML elements and landmarks.
Typical regions include:
- Header.
- Navigation.
- Main content.
- Complementary sidebar.
- Footer.
Block themes can assign semantic elements to Group, Template Part and Query blocks. Classic themes define them in PHP templates.
Use one clear main region and avoid unnecessary landmark duplication.
Skip Links
A skip link lets keyboard users bypass repeated navigation and move directly to the main content.
The target must exist, receive focus appropriately and remain visible when focused. Theme changes should not remove or obscure this mechanism.
Keyboard Navigation and Focus
Every interactive control must be operable without a mouse.
Test:
- Navigation menus and submenus.
- Search controls.
- Modal and overlay components.
- Carousels.
- Form controls.
- Pagination.
- Comment interfaces.
Focus indicators must be visible against the surrounding design. Do not remove outlines without providing an effective alternative.
Typography and Color
The theme should support readable text and sufficient contrast.
Consider:
- Font size and line height.
- Line length.
- Text spacing.
- Color contrast.
- Link recognition beyond color alone.
- Zoom and text resizing.
- Dark and custom color combinations.
Global Styles should not expose combinations that make accessible content difficult to maintain.
Navigation Accessibility
Menus require clear labels, logical order and usable submenu controls.
Collapsed mobile navigation needs an accessible name and state. Keyboard and screen-reader users should understand whether the menu is open and where focus moves.
Do not depend on hover alone.
Dynamic and Repeated Content
Query Loops, carousels and interactive blocks need appropriate headings and announcements.
Repeated cards should avoid duplicate link text without context. Pagination needs descriptive labels and a clear current page.
Dynamic changes should preserve focus and communicate status where necessary.
Editor and Theme Responsibilities
The theme owns the structural foundation, but editors also affect accessibility through:
- Heading order.
- Alternative text.
- Link wording.
- Table structure.
- Color choices.
- Captions and transcripts.
- Block selection.
Provide patterns, style presets and documentation that make the accessible choice the easy choice.
Accessibility-Ready Themes
The WordPress.org accessibility-ready designation indicates that a submitted theme passed specific review requirements.
It does not certify the final website, third-party plugins or later customizations. Continue testing the complete implementation.
Testing Process
Use a combination of:
- Keyboard testing.
- Screen-reader checks.
- Automated accessibility tools.
- Contrast analysis.
- Zoom and reflow testing.
- Reduced-motion settings.
- Real-user feedback where possible.
Test representative templates, not only the homepage.
Frequently Asked Questions
Can a plugin make an inaccessible theme accessible?
An overlay or plugin cannot reliably repair structural problems across an entire site. Fix the underlying theme, content and component issues.
Are block themes automatically accessible?
No. Blocks provide useful semantics and controls, but templates, styles and content must still be implemented correctly.
Who owns accessibility after launch?
Accessibility is shared across design, development, content and maintenance. Assign ongoing review responsibilities.
Applying Theme Accessibility in a Real WordPress Project
Separate content, presentation and permanent functionality. Test the editing workflow as well as the public output, because a theme decision affects templates, design controls, accessibility, performance and future redesign work.
A connected concept is Choosing Accessible Themes and Plugins. Reading the two together helps separate the immediate task from the wider WordPress responsibility.
A useful implementation begins by writing down the current state, the intended outcome and the evidence that will prove the change worked. This prevents a configuration screen, plugin recommendation or code snippet from becoming the entire strategy.
A Practical Example
Imagine a team making this decision for a production WordPress site. The useful question is not only “Can WordPress do this?” but “Which layer owns it, who maintains it, what data does it affect and how will we verify it after an update?”
Write the answer in operational terms. Name the content, user, setting, file, API or service involved. Then identify what should remain true if the theme changes, a plugin is replaced or the site is migrated.
Questions to Ask
- What user or system problem does this solve?
- Which WordPress layer owns the behaviour?
- What data is created or changed?
- Who may perform the action?
- What can fail, and how will that failure be visible?
- How is the result tested after updates?
- What is the migration or removal path?
Combine Automated and Manual Testing
Automated tools are useful for repeated checks, but they cannot confirm whether alternative text is meaningful, focus moves logically or instructions are understandable.
Use automated scans as a baseline, then complete the real task with keyboard, zoom and assistive technology. Record the user impact, not only the rule number.
Official Reference Context
The WordPress Accessibility Coding Standards is the primary version-specific reference for this topic. Use the current documentation to verify interface labels, supported APIs and behaviour before applying instructions to a production site.
How to Verify the Result
- Test representative templates on mobile and desktop.
- Check keyboard navigation, headings, contrast and focus.
- Switch editing contexts and confirm that the team knows where each design decision is stored.
Related Articles
- Choosing Accessible Themes and Plugins
- Accessibility for WordPress Developers
- How to Test a WordPress Website for Accessibility
- Accessibility
Sources and Further Reading
- WordPress Accessibility Coding Standards
- Theme Handbook
- Web Content Accessibility Guidelines 2.2
- WordPress Roles and Capabilities
Continue Learning
- Section: Themes and Templates
- Previous: Responsive Design in WordPress
- Next: Troubleshooting WordPress Theme Problems