responsive_mobile_header_style

Styles the header image and text displayed on the blog.

Description

responsive_mobile_header_style(); 

Usage

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

Defined (1)

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

/includes/functions-custom-header.php  
  1. function responsive_mobile_header_style() { 
  2. $header_text_color = get_header_textcolor(); 
  3.  
  4. // If no custom options for text are set, let's bail 
  5. // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value 
  6. if ( HEADER_TEXTCOLOR == $header_text_color ) { 
  7. return; 
  8.  
  9. // If we get this far, we have custom styles. Let's do this. 
  10. ?> 
  11. <style type="text/css"> 
  12. <?php 
  13. // Has the text been hidden? 
  14. if ( 'blank' == $header_text_color ) : 
  15. ?> 
  16. .site-title,  
  17. .site-description { 
  18. position: absolute; 
  19. clip: rect(1px, 1px, 1px, 1px); 
  20. <?php 
  21. // If the user has set a custom color for the text use that 
  22. else : 
  23. ?> 
  24. .site-title a,  
  25. .site-description { 
  26. color: #<?php echo $header_text_color; ?>; 
  27. <?php endif; ?> 
  28. </style> 
  29. <?php