twentythirteen_admin_header_image

Output markup to be displayed on the Appearance > Header admin panel.

Description

twentythirteen_admin_header_image(); 

This callback overrides the default markup displayed there.


Usage

  1. if ( !function_exists( 'twentythirteen_admin_header_image' ) ) { 
  2. require_once '/inc/custom-header.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentythirteen_admin_header_image(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/custom-header.php  
  1. function twentythirteen_admin_header_image() { 
  2. $style = 'color: #' . get_header_textcolor() . ';'; 
  3. if ( ! display_header_text() ) { 
  4. $style = 'display: none;'; 
  5. ?> 
  6. <div id="headimg" style="background: url(<?php echo esc_url( get_header_image() ); ?>) no-repeat scroll top; background-size: 1600px auto;"> 
  7. <div class="home-link"> 
  8. <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( $style ); ?>" onclick="return false;" href="#" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1> 
  9. <h2 id="desc" class="displaying-header-text" style="<?php echo esc_attr( $style ); ?>"><?php bloginfo( 'description' ); ?></h2> 
  10. </div> 
  11. </div> 
  12. <?php }