WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2014 09:02:02 PM (6 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/index.php

    r30046 r30072  
    2222
    2323        <?php if ( have_posts() ) : ?>
     24
     25            <?php if ( is_home() && ! is_front_page() ) : ?>
     26                <header>
     27                    <h1 class="page-title screen-reader-text"><?php echo esc_html( get_the_title( get_option( 'page_for_posts' ) ) ); ?></h1>
     28                </header>
     29            <?php endif; ?>
    2430
    2531            <?php while ( have_posts() ) : the_post(); ?>
Note: See TracChangeset for help on using the changeset viewer.