WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2014 09:02:02 PM (5 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: Use a heading heirarchy to provide a better navigation experience when using screenreading software.

Props davidakennedy, rianrietveld, iamtakashi, afercia, davidakennedy, fixes #30065.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php

    r30046 r30072  
    3535    ?>
    3636    <nav class="navigation pagination" role="navigation">
    37         <h1 class="screen-reader-text"><?php esc_html_e( 'Posts navigation', 'twentyfifteen' ); ?></h1>
     37        <h2 class="screen-reader-text"><?php esc_html_e( 'Posts navigation', 'twentyfifteen' ); ?></h2>
    3838        <div class="nav-links">
    3939            <?php echo $links; ?>
     
    7272    ?>
    7373    <nav class="navigation post-navigation" role="navigation">
    74         <h1 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'twentyfifteen' ); ?></h1>
     74        <h2 class="screen-reader-text"><?php esc_html_e( 'Post navigation', 'twentyfifteen' ); ?></h2>
    7575        <div class="nav-links">
    7676            <?php
     
    9999    ?>
    100100    <nav class="navigation comment-navigation" role="navigation">
    101         <h1 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'twentyfifteen' ); ?></h1>
     101        <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'twentyfifteen' ); ?></h2>
    102102        <div class="nav-links">
    103103            <?php
Note: See TracChangeset for help on using the changeset viewer.