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

Untitled

By: a guest on Sep 21st, 2011  |  syntax: None  |  size: 1.22 KB  |  views: 82  |  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 = '20110832';
  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/themes/bp-child/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.  
  26. function my_bp_groups_forum_first_tab() {
  27.         global $bp;
  28.        
  29.         $bp->bp_options_nav['groups']['home']['position'] = '50';
  30. }
  31. add_action('wp', 'my_bp_groups_forum_first_tab');
  32. ?>
clone this paste RAW Paste Data