skt_black_custom_head_codes

The SKT Black skt black custom head codes function.

Description

skt_black_custom_head_codes(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function skt_black_custom_head_codes() {  
  2. if ( function_exists('of_get_option') ) { 
  3. if ( of_get_option('style2', true) != '' ) { 
  4. echo "<style>". esc_html( of_get_option('style2', true) ) ."</style>"; 
  5. echo "<style>"; 
  6. if ( of_get_option('colorscheme', true) != '' ) { 
  7. echo '.top-bar a, .contact-banner a, input.search-submit, .post-password-form input[type=submit], #services-box:hover, .icon:hover, .newsletter-form input[type="submit"]{background-color:'. esc_html( of_get_option('colorscheme', true) ) .';}'; 
  8. if( of_get_option('colorscheme', true) != '') { 
  9. echo ".header .header-inner .nav ul li a:hover, .newsletter h2 span, .recent-post li span, .phone-no strong, a{color:". esc_html(of_get_option('colorscheme', true))."}"; 
  10. if( of_get_option('colorscheme', true) != '') { 
  11. echo "#some-facts li{border:2px solid ".esc_html(of_get_option('colorscheme', true))."}"; 
  12. if( of_get_option('colorscheme', true) != '') { 
  13. echo ".more:hover{background:".esc_html(of_get_option('colorscheme', true))." url(".get_template_directory_uri()."/images/white-arrow.png) no-repeat scroll center center}"; 
  14. echo "</style>";