catchresponsive_header_style

Styles the header image and text displayed on the blog.

Description

catchresponsive_header_style(); 

Usage

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

Defined (1)

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

/inc/catchresponsive-custom-header.php  
  1. function catchresponsive_header_style() { 
  2.  
  3. // If no custom options for text are set, let's bail 
  4. // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value 
  5. if ( HEADER_TEXTCOLOR == get_header_textcolor() ) 
  6. return; 
  7. // If we get this far, we have custom styles. Let's do this. 
  8. ?> 
  9. <style type="text/css"> 
  10. <?php 
  11. // Has the text been hidden? 
  12. if ( 'blank' != get_header_textcolor() ) { ?> 
  13. .site-title a,  
  14. .site-description { 
  15. color: #<?php echo get_header_textcolor(); ?>; 
  16. <?php 
  17. } ?> 
  18. </style> 
  19. <?php