#61768 closed defect (bug) (duplicate)
Twenty Twelve outputs an empty heading if the tagline is empty
Reported by: | poena | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | accessibility | Cc: |
Description
If a user leaves the tagline option empty, the theme prints an empty H2 heading below the site title in the header.
You can test this by leaving the tagline option empty in the Customizer or Settings > General, and then viewing the source of any page on the front of the website.
<h1 class="site-title"><a href="http://66.local/" rel="home">Site Title</a></h1> <h2 class="site-description"></h2>
This is an error according to WCAG and makes it more difficult for some users to navigate the page using headings.
Here is a good summary of why: https://equalizedigital.com/accessibility-checker/empty-heading/
This heading should only be output on the page if there is a tagline.
Change History (6)
This ticket was mentioned in PR #7098 on WordPress/wordpress-develop by @narenin.
3 months ago
#1
- Keywords has-patch added
#2
@
3 months ago
@poena All old themes( 2012, 2013, 2014, etc.. ) have same issue when the tagline is empty
#3
@
3 months ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
#44656 already tracks this with the potentially empty links.
#4
@
2 months ago
@sabernhardt should this be marked as a duplicate then? I'm cautious with the patch on this and the other to make sure which one we get in and not trip over the other.
Trac ticket: https://core.trac.wordpress.org/ticket/61768