H1 Not Found Inside the Main Content Area
WCAG Focus: WCAG 1.3.1 (A), 2.4.6 (AA)
Many classic WordPress themes wrap the header site logo or site name inside an <h1> tag on every page and demote the actual article title inside <main> to an <h2>. As a result, a screen reader user jumping to the main landmark or pressing "1" to hear the primary H1 hears the brand name instead of the page’s subject.
Why This Pattern Violates WCAG
WCAG 1.3.1 Info and Relationships (Level A) and W3C best practices recommend placing the primary <h1> inside the <main> landmark so users immediately identify the core topic of each unique page.
Code Comparison
Inaccessible Header Logo H1
<header>
<h1><a href="/">My WordPress Blog</a></h1>
</header>
<main>
<h2>How to Fix Meta Refresh</h2>
</main>
Compliant H1 Inside Main Landmark
<header>
<a href="/" class="site-title">My WordPress Blog</a>
</header>
<main id="main-content">
<h1>How to Fix Meta Refresh</h1>
</main>
How to Fix It in WordPress
- Use a <span> or <a> for the global header site title/logo across inner pages.
- Reserve the primary <h1> for the main post or page title inside <main>.
Finding This Issue Automatically
Theme header templates silently dictate where <h1> appears on thousands of WordPress URLs at once. The WP ADA Compliance Check plugin verifies whether an <h1> resides inside your <main> landmark, alerting you to template-level heading misconfigurations before they affect every page.
Subscribe
Subscribe to receive daily Web Accessibility - Did you know? articles in your inbox.

