Make WordPress Core

Changeset 23492


Ignore:
Timestamp:
02/26/2013 04:50:09 AM (13 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: header area with no site title or tagline should still be clickable to home. Fixes #23549.

Fix also removes several !important flags that aren't necessary, relating to header text color.

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

Legend:

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

    r23452 r23492  
    4040    <div id="page" class="hfeed site">
    4141        <header id="masthead" class="site-header" role="banner">
    42             <hgroup>
    43                 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    44                 <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
    45             </hgroup>
     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>
     47            </a>
    4648
    4749            <div id="navbar" class="navbar">
  • trunk/wp-content/themes/twentythirteen/inc/custom-header.php

    r23452 r23492  
    113113        elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :
    114114    ?>
    115         .site-title a,
     115        .site-title,
    116116        .site-description {
    117             color: #<?php echo esc_attr( $text_color ); ?> !important;
     117            color: #<?php echo esc_attr( $text_color ); ?>;
    118118        }
    119119    <?php endif; ?>
  • trunk/wp-content/themes/twentythirteen/js/theme-customizer.js

    r23452 r23492  
    1010    wp.customize( 'blogname', function( value ) {
    1111        value.bind( function( to ) {
    12             $( '.site-title a' ).text( to );
     12            $( '.site-title' ).text( to );
    1313        } );
    1414    } );
  • trunk/wp-content/themes/twentythirteen/style.css

    r23491 r23492  
    829829.site-header a {
    830830    color: #141412;
     831    text-decoration: none;
     832}
     833
     834.site-header .site-title:hover {
     835    text-decoration: underline;
    831836}
    832837
     
    10061011}
    10071012
    1008 .navbar-fixed #masthead .site-title a {
    1009     color: #141412 !important; /* Must override custom header text color. */
     1013.navbar-fixed #masthead .site-title {
     1014    color: #141412;
    10101015}
    10111016
Note: See TracChangeset for help on using the changeset viewer.