Add .displaying-header-text to the default themes, as the Custom Header page toggles this class. props obenland, fixes #24113.
git-svn-id: https://develop.svn.wordpress.org/trunk@24050 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
acc1b0f220
commit
bd7837e30e
|
@ -317,8 +317,8 @@ function twentyeleven_admin_header_image() { ?>
|
||||||
else
|
else
|
||||||
$style = ' style="display:none"';
|
$style = ' style="display:none"';
|
||||||
?>
|
?>
|
||||||
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
<div id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
||||||
<?php if ( $image ) : ?>
|
<?php if ( $image ) : ?>
|
||||||
<img src="<?php echo esc_url( $image ); ?>" alt="" />
|
<img src="<?php echo esc_url( $image ); ?>" alt="" />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -196,8 +196,8 @@ function twentythirteen_admin_header_image() {
|
||||||
<div id="headimg" style="background: url(<?php header_image(); ?>) no-repeat scroll top; background-size: 1600px auto;">
|
<div id="headimg" style="background: url(<?php header_image(); ?>) no-repeat scroll top; background-size: 1600px auto;">
|
||||||
<?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
|
<?php $style = ' style="color:#' . get_header_textcolor() . ';"'; ?>
|
||||||
<div class="hgroup">
|
<div class="hgroup">
|
||||||
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="#"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
<h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
|
<h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
|
|
|
@ -155,8 +155,8 @@ function twentytwelve_admin_header_image() {
|
||||||
else
|
else
|
||||||
$style = ' style="color:#' . get_header_textcolor() . ';"';
|
$style = ' style="color:#' . get_header_textcolor() . ';"';
|
||||||
?>
|
?>
|
||||||
<h1><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
<h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||||
<h2 id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
|
<h2 id="desc" class="displaying-header-text"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></h2>
|
||||||
<?php $header_image = get_header_image();
|
<?php $header_image = get_header_image();
|
||||||
if ( ! empty( $header_image ) ) : ?>
|
if ( ! empty( $header_image ) ) : ?>
|
||||||
<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
|
<img src="<?php echo esc_url( $header_image ); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
|
||||||
|
|
Loading…
Reference in New Issue