twentyeleven_admin_header_style

Styles the header image displayed on the Appearance > Header admin panel.

Description

twentyeleven_admin_header_style(); 

Referenced via add_custom_image_header() in twentyeleven_setup().


Usage

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

Defined (1)

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

/functions.php  
  1. function twentyeleven_admin_header_style() { 
  2. ?> 
  3. <style type="text/css"> 
  4. .appearance_page_custom-header #headimg { 
  5. border: none; 
  6. #headimg h1,  
  7. #desc { 
  8. font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; 
  9. #headimg h1 { 
  10. margin: 0; 
  11. #headimg h1 a { 
  12. font-size: 32px; 
  13. line-height: 36px; 
  14. text-decoration: none; 
  15. #desc { 
  16. font-size: 14px; 
  17. line-height: 23px; 
  18. padding: 0 0 3em; 
  19. <?php 
  20. // If the user has set a custom color for the text use that 
  21. if ( get_header_textcolor() != HEADER_TEXTCOLOR ) : 
  22. ?> 
  23. #site-title a,  
  24. #site-description { 
  25. color: #<?php echo get_header_textcolor(); ?>; 
  26. <?php endif; ?> 
  27. #headimg img { 
  28. max-width: 1000px; 
  29. height: auto; 
  30. width: 100%; 
  31. </style> 
  32. <?php