[wp-trac] [WordPress Trac] #61768: Twenty Twelve outputs an empty heading if the tagline is empty

WordPress Trac noreply at wordpress.org
Fri Jul 26 05:16:42 UTC 2024


#61768: Twenty Twelve outputs an empty heading if the tagline is empty
---------------------------+-----------------------------
 Reporter:  poena          |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Bundled Theme  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61768>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list