[wp-trac] [WordPress Trac] #48126: Duplicate <h1> tags in twentynineteen
WordPress Trac
noreply at wordpress.org
Fri Sep 27 08:46:42 UTC 2019
#48126: Duplicate <h1> tags in twentynineteen
---------------------------+------------------------------
Reporter: williampatton | Owner: adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: accessibility
---------------------------+------------------------------
Comment (by sabernhardt):
The Posts page now has an `h1` on the site title; otherwise, my test pages
are the same after the patch as what I previously reported. So that would
still be zero doubles found, without considering child themes.
One child theme possibility: The Posts page template (home.php) uses
`single_post_title()` to add the page name as a heading above all the
posts, which would then be the second `h1`. Simplifying the conditional to
`if ( is_front_page() && ! is_page() )` could help in that case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48126#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list