Make WordPress Core

Changeset 24072


Ignore:
Timestamp:
04/23/2013 05:55:55 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: remove hgroup from the theme markup structure since it's been dropped from HTML5 spec. Props obenland for the starter patch. Fixes #24114.

Location:
trunk/wp-content/themes/twentythirteen
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/css/ie.css

    r24035 r24072  
    3535}
    3636
    37 .site-header hgroup {
     37.site-header .home-link {
    3838    max-width: 1040px;
    3939}
  • trunk/wp-content/themes/twentythirteen/header.php

    r23799 r24072  
    4040    <div id="page" class="hfeed site">
    4141        <header id="masthead" class="site-header" role="banner">
    42             <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    43                 <hgroup>
    44                     <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
    45                     <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    46                 </hgroup>
     42            <a class="home-link" href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
     43                <h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
     44                <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    4745            </a>
    4846
  • trunk/wp-content/themes/twentythirteen/inc/custom-header.php

    r24050 r24072  
    104104            if ( empty( $header_image ) ) :
    105105    ?>
    106         .site-header hgroup {
     106        .site-header .home-link {
    107107            min-height: 0;
    108108        }
     
    142142        padding: 0 20px;
    143143    }
    144     #headimg .hgroup {
     144    #headimg .home-link {
    145145        -webkit-box-sizing: border-box;
    146146        -moz-box-sizing:    border-box;
     
    196196    <div id="headimg" style="background: url(<?php header_image(); ?>) no-repeat scroll top; background-size: 1600px auto;">
    197197        <?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
    198         <div class="hgroup">
     198        <div class="home-link">
    199199            <h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
    200200            <h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
  • trunk/wp-content/themes/twentythirteen/js/theme-customizer.js

    r23680 r24072  
    2323            if ( 'blank' == to ) {
    2424                if ( 'remove-header' == _wpCustomizeSettings.values.header_image )
    25                     $( '#masthead hgroup' ).css( 'min-height', '0' );
     25                    $( '.home-link' ).css( 'min-height', '0' );
    2626                $( '.site-title, .site-description' ).css( {
    2727                    'clip': 'rect(1px, 1px, 1px, 1px)',
     
    2929                } );
    3030            } else {
    31                 $( '#masthead hgroup' ).css( 'min-height', '230px' );
     31                $( '.home-link' ).css( 'min-height', '230px' );
    3232                $( '.site-title, .site-description' ).css( {
    3333                    'clip': 'auto',
  • trunk/wp-content/themes/twentythirteen/style.css

    r24071 r24072  
    7171footer,
    7272header,
    73 hgroup,
    7473nav,
    7574section,
     
    808807}
    809808
    810 .site-header hgroup {
     809.site-header .home-link {
     810    color: #141412;
     811    display: block;
    811812    margin: 0 auto;
    812813    max-width: 1080px;
     
    814815    min-height: 230px;
    815816    width: 100%;
    816 }
    817 
    818 .site-header a {
    819     color: #141412;
    820817    text-decoration: none;
    821818}
     
    992989}
    993990
    994 .navbar-fixed #masthead .site-title {
     991.navbar-fixed .site-title {
    995992    color: #141412;
    996993}
     
    32393236    }
    32403237
    3241     .site-header hgroup {
     3238    .site-header .home-link {
    32423239        min-height: 0;
    32433240        max-width: none;
Note: See TracChangeset for help on using the changeset viewer.