forked from mirror/_s
Updates to the _s_admin_header_image() callback
Adding a ".displaying-header-text" class to the header h1 and to the site description div inside _s_admin_header_image(). This allows the "display text with your image" toggle button to work in the admin preview under Appearance > Header.
This commit is contained in:
parent
6056c1ed66
commit
a47b1523dd
|
@ -165,8 +165,8 @@ function _s_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>
|
||||||
<div id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
<div class="displaying-header-text" id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
||||||
<?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 ); ?>" alt="" />
|
<img src="<?php echo esc_url( $header_image ); ?>" alt="" />
|
||||||
|
|
Reference in New Issue