eewee_header_style

Styles the header image and text displayed on the blog.

Description

eewee_header_style(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function eewee_header_style() { 
  2. $text_color = get_header_textcolor(); 
  3.  
  4. // If no custom options for text are set, let's bail. 
  5. if ( $text_color == HEADER_TEXTCOLOR ) 
  6. return; 
  7.  
  8. // If we get this far, we have custom styles. Let's do this. 
  9. ?> 
  10. <style type="text/css"> 
  11. <?php 
  12. // Has the text been hidden? 
  13. if ( 'blank' == $text_color ) : 
  14. ?> 
  15. #site-title,  
  16. #site-description { 
  17. position: absolute !important; 
  18. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 
  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 $text_color; ?> !important; 
  27. <?php endif; ?> 
  28. </style> 
  29. <?php