WordPress.org

Make WordPress Core

Changeset 30009


Ignore:
Timestamp:
10/24/2014 02:50:49 PM (4 years ago)
Author:
iandstewart
Message:

Twenty Fifteen: Use a p for the site description for a better experience when using a screenreader.

Props rianrietveld, fixes #30057, see #30065.

Location:
trunk/src/wp-content/themes/twentyfifteen
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/header.php

    r29928 r30009  
    3131            <div class="site-branding">
    3232                <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    33                 <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
     33                <p class="site-description"><?php bloginfo( 'description' ); ?></p>
    3434                <button class="secondary-toggle"><?php esc_html_e( 'Menu and widgets', 'twentyfifteen' ); ?></button>
    3535            </div><!-- .site-branding -->
  • trunk/src/wp-content/themes/twentyfifteen/style.css

    r29996 r30009  
    13051305    font-weight: 400;
    13061306    line-height: 1.5;
    1307     margin-top: 0.5em;
     1307    margin: 0.5em 0 0;
    13081308    opacity: 0.7;
    13091309}
Note: See TracChangeset for help on using the changeset viewer.