responsive_mobile_header_branding

Adds header logo or site name to header.

Description

responsive_mobile_header_branding(); 

Usage

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

Defined (1)

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

/includes/functions-header.php  
  1. function responsive_mobile_header_branding() { 
  2. if ( get_header_image() ) : ?> 
  3. <div id="logo"> 
  4. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" itemprop="url" title="<?php echo esc_attr( get_bloginfo( 'title' ) ) ?>"> 
  5. <img src="<?php header_image(); ?>" alt="<?php echo esc_attr( get_bloginfo( 'title' ) ) ?>" itemprop="image"> 
  6. </a> 
  7. </div> 
  8. <?php else : ?> 
  9. <div id="site-header-text"> 
  10. <?php if ( 'blank' != get_theme_mod( 'header_textcolor' ) ) : ?> 
  11. <div class="site-name" itemprop="headline"> 
  12. <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" itemprop="url"><?php bloginfo( 'name' ); ?></a> 
  13. </div> 
  14. <div class="site-description" itemprop="description"><?php bloginfo( 'description' ); ?></div> 
  15. <?php endif; // End header text check. ?> 
  16. </div> 
  17. <?php endif; // End header image check.