Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 6th, 2011  |  syntax: None  |  size: 1.08 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. function bp_dtheme_enqueue_styles() {
  3.         // Bump this when changes are made to bust cache
  4.         $version = '20110830';
  5.  
  6.         // Default CSS
  7.         wp_enqueue_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), $version );
  8.  
  9.         // My CSS
  10.         wp_enqueue_style( 'my-style', get_site_url() . '/wp-content/plugins/buddypress/bp-themes/bp-child/styles/my-style.css', array( 'bp-default-main' ), $version );
  11.  
  12.         // Default CSS RTL
  13.         if ( is_rtl() )
  14.                 wp_enqueue_style( 'bp-default-main-rtl',  get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), $version );
  15.  
  16.         // Responsive layout
  17.         if ( current_theme_supports( 'bp-default-responsive' ) ) {
  18.                 wp_enqueue_style( 'bp-default-responsive', get_template_directory_uri() . '/_inc/css/responsive.css', array( 'bp-default-main' ), $version );
  19.  
  20.                 if ( is_rtl() )
  21.                         wp_enqueue_style( 'bp-default-responsive-rtl', get_template_directory_uri() . '/_inc/css/responsive-rtl.css', array( 'bp-default-responsive' ), $version );
  22.         }
  23. }
  24. add_action( ‘wp_print_styles’, ‘bp_dtheme_enqueue_styles’ );
  25. ?>
clone this paste RAW Paste Data