twentyfourteen_admin_header_image

Create the custom header image markup displayed on the Appearance > Header screen.

Description

twentyfourteen_admin_header_image(); 

Usage

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

Defined (1)

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

/inc/custom-header.php  
  1. function twentyfourteen_admin_header_image() { 
  2. ?> 
  3. <div id="headimg"> 
  4. <?php if ( get_header_image() ) : ?> 
  5. <img src="<?php header_image(); ?>" alt=""> 
  6. <?php endif; ?> 
  7. <h1 class="displaying-header-text"><a id="name" style="<?php echo esc_attr( sprintf( 'color: #%s;', get_header_textcolor() ) ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1> 
  8. </div> 
  9. <?php