responsive_stylesheet_uri

Change the location of the default stylesheet.

Description

responsive_stylesheet_uri( $stylesheet_uri, $stylesheet_dir_uri ); 

Parameters (2)

0. $stylesheet_uri
The stylesheet uri.
1. $stylesheet_dir_uri
The stylesheet dir uri.

Usage

  1. if ( !function_exists( 'responsive_stylesheet_uri' ) ) { 
  2. require_once '/includes/functions.php'; 
  3.  
  4. // The stylesheet uri. 
  5. $stylesheet_uri = null; 
  6.  
  7. // The stylesheet dir uri. 
  8. $stylesheet_dir_uri = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = responsive_stylesheet_uri($stylesheet_uri, $stylesheet_dir_uri); 
  12.  

Defined (1)

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

/includes/functions.php  
  1. function responsive_stylesheet_uri( $stylesheet_uri, $stylesheet_dir_uri ) { 
  2. $responsive_mobile_options = responsive_mobile_get_options(); 
  3. $suffix = ( "1" === $responsive_mobile_options['minified_css'] ) ? '.min' : ''; 
  4. $rtl = ( is_rtl() ) ? '-rtl' : ''; 
  5.  
  6. if ( ! is_child_theme() ) { 
  7. $stylesheet_uri = $stylesheet_dir_uri . '/css/style' . $rtl . $suffix . '.css'; 
  8.  
  9. return $stylesheet_uri;