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/content-link.php

    r30046 r30072  
    1515
    1616    <header class="entry-header">
    17         <?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' ); ?>
     17        <?php
     18            if ( is_single() ) :
     19                the_title( sprintf( '<h1 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h1>' );
     20            else :
     21                the_title( sprintf( '<h2 class="entry-title"><a href="%s">', esc_url( twentyfifteen_get_link_url() ) ), '</a></h2>' );
     22            endif;
     23        ?>
    1824    </header>
    1925    <!-- .entry-header -->
Note: See TracChangeset for help on using the changeset viewer.