skt_parallaxme_enqueue_styles

The SKT Parallaxme skt parallaxme enqueue styles function.

Description

skt_parallaxme_enqueue_styles(); 

Usage

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

Defined (1)

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

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