Duplicate h1 tag in sidebar
-
Hello,
smoe of the recent versions of author introduced another h1 tag in the sidebar snippet.
$ cat sidebar-primary.php <?php if ( is_active_sidebar( 'primary' ) ) : ?> <aside class="sidebar sidebar-primary" id="sidebar-primary" role="complementary"> <h1 class="screen-reader-text"><?php _e( 'Sidebar', 'author' ); ?></h1> <?php dynamic_sidebar( 'primary' ); ?> </aside> <?php endif;
The worst thing is that it even comes BEFORE the main content. This will make it hard for google or people with screen readers to figure out the correct title.
Please change it to at least h2 (possibly even less).
Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Duplicate h1 tag in sidebar’ is closed to new replies.