skt_black_ie_stylesheet

The SKT Black skt black ie stylesheet function.

Description

skt_black_ie_stylesheet(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function skt_black_ie_stylesheet() { 
  2. global $wp_styles; 
  3.  
  4. /** Load our IE-only stylesheet for all versions of IE. 
  5. * <!--[if lt IE 9]> ... <![endif]--> 
  6. * Note: It is also possible to just check and see if the $is_IE global in WordPress is set to true before 
  7. * calling the wp_enqueue_style() function. If you are trying to load a stylesheet for all browsers 
  8. * EXCEPT for IE, then you would HAVE to check the $is_IE global since WordPress doesn't have a way to 
  9. * properly handle non-IE conditional comments. 
  10. */ 
  11. wp_enqueue_style('skt-black-ie', get_template_directory_uri().'/css/ie.css', array('skt-black-style')); 
  12. $wp_styles->add_data('skt-black-ie', 'conditional', 'IE');