catchresponsive_admin_header_style

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

Description

catchresponsive_admin_header_style(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-custom-header.php  
  1. function catchresponsive_admin_header_style() { 
  2.  
  3. ?> 
  4. <style type="text/css"> 
  5. body { 
  6. color: #404040; 
  7. font-family: sans-serif; 
  8. font-size: 15px; 
  9. line-height: 1.5; 
  10. #site-logo,  
  11. #site-header { 
  12. display: inline-block; 
  13. float: left; 
  14. #site-branding .site-title { 
  15. font-size: 40px; 
  16. font-weight: bold; 
  17. line-height: 1.2; 
  18. margin: 0; 
  19. #site-branding .site-title a { 
  20. color: #404040; 
  21. text-decoration: none; 
  22. #site-branding .site-description { 
  23. color: #404040; 
  24. font-size: 13px; 
  25. line-height: 1.2; 
  26. font-style: italic; 
  27. padding: 0; 
  28. .logo-left #site-header { 
  29. padding-left: 10px; 
  30. .logo-right #site-header { 
  31. padding-right: 10px; 
  32. #header-featured-image { 
  33. clear: both; 
  34. padding-top: 20px; 
  35. max-width: 90%; 
  36. #header-featured-image img { 
  37. height: auto; 
  38. max-width: 100%; 
  39. <?php 
  40. // If the user has set a custom color for the text use that 
  41. if ( get_header_textcolor() != HEADER_TEXTCOLOR ) { 
  42. echo ' 
  43. #site-branding .site-title a,  
  44. #site-branding .site-description { 
  45. color: #' . get_header_textcolor() . '; 
  46. }'; 
  47. ?> 
  48. </style> 
  49. <?php