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.

git-svn-id: https://develop.svn.wordpress.org/trunk@23492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Lance Willett 2013-02-26 04:50:09 +00:00
parent 3d15ae0301
commit fb4ae83cc5
4 changed files with 16 additions and 9 deletions

View File

@ -39,10 +39,12 @@ $html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
<body <?php body_class(); ?>>
<div id="page" class="hfeed site">
<header id="masthead" class="site-header" role="banner">
<hgroup>
<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>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
<hgroup>
<h1 class="site-title"><?php bloginfo( 'name' ); ?></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</hgroup>
</a>
<div id="navbar" class="navbar">
<nav id="site-navigation" class="navigation main-navigation" role="navigation">

View File

@ -112,9 +112,9 @@ function twentythirteen_header_style() {
// If the user has set a custom color for the text, use that.
elseif ( $text_color != get_theme_support( 'custom-header', 'default-text-color' ) ) :
?>
.site-title a,
.site-title,
.site-description {
color: #<?php echo esc_attr( $text_color ); ?> !important;
color: #<?php echo esc_attr( $text_color ); ?>;
}
<?php endif; ?>
</style>

View File

@ -9,7 +9,7 @@
// Site title and description.
wp.customize( 'blogname', function( value ) {
value.bind( function( to ) {
$( '.site-title a' ).text( to );
$( '.site-title' ).text( to );
} );
} );
wp.customize( 'blogdescription', function( value ) {

View File

@ -828,6 +828,11 @@ img.wp-smiley,
.site-header a {
color: #141412;
text-decoration: none;
}
.site-header .site-title:hover {
text-decoration: underline;
}
.site-title {
@ -1005,8 +1010,8 @@ ul.nav-menu li:hover > ul,
z-index: 3;
}
.navbar-fixed #masthead .site-title a {
color: #141412 !important; /* Must override custom header text color. */
.navbar-fixed #masthead .site-title {
color: #141412;
}
.navbar-fixed .navbar {