bp_dtheme_enqueue_styles

Enqueue theme CSS safely.

Description

bp_dtheme_enqueue_styles(); 

Usage

  1. if ( !function_exists( 'bp_dtheme_enqueue_styles' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-groupblog/themes/p2-buddypress/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_dtheme_enqueue_styles(); 
  7.  

Defined (1)

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

/themes/p2-buddypress/functions.php  
  1. function bp_dtheme_enqueue_styles() { 
  2. // Default CSS 
  3. wp_enqueue_style( 'bp-default-main', WP_PLUGIN_URL . '/buddypress/bp-themes/bp-default/_inc/css/default.css', array() ); 
  4.  
  5. // Default CSS RTL 
  6. if ( is_rtl() ) 
  7. wp_enqueue_style( 'bp-default-main-rtl', WP_PLUGIN_URL . '/buddypress/bp-themes/bp-default/_inc/css/default-rtl.css', array( 'bp-default-main' ) ); 
  8.