enigma_header_style

The Enigma enigma header style function.

Description

enigma_header_style(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function enigma_header_style() { 
  2. $header_text_color = get_header_textcolor(); 
  3. // If no custom options for text are set, let's bail. 
  4. // get_header_textcolor() options: add_theme_support( 'custom-header' ) is default, hide text (returns 'blank') or any hex value. 
  5. if ( get_theme_support( 'custom-header', 'default-text-color' ) == $header_text_color ) { 
  6. return; 
  7. // If we get this far, we have custom styles. Let's do this. 
  8. ?> 
  9. <style id="fashionair-custom-header-styles" type="text/css"> 
  10. <?php 
  11. // Has the text been hidden? 
  12. if ( 'blank' == $header_text_color ) : 
  13. ?> 
  14. .head-contact-info li a{ 
  15. color:#fff; 
  16. .hd_cover { 
  17. color: #fff; 
  18. .logo p { 
  19. color: #fff; 
  20. .social i { 
  21. color: #fff; 
  22. .social li { 
  23. border: 2px solid #ffffff; 
  24. .logo a { 
  25. color: #fff; 
  26. <?php 
  27. // If the user has set a custom color for the text use that. 
  28. else : 
  29. ?> 
  30. .head-contact-info li a, .hd_cover, .logo p, .social i, .logo a{ 
  31. color: #<?php echo esc_attr( $header_text_color ); ?>; 
  32. .social li { 
  33. border:2px solid #<?php echo esc_attr( $header_text_color ); ?>; 
  34. <?php endif; ?> 
  35. </style> 
  36. <?php