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

Untitled

By: a guest on Aug 7th, 2013  |  syntax: None  |  size: 1.20 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // Override BP Default Theme's styles
  2.  
  3. if ( ! function_exists( 'bp_dtheme_enqueue_styles()' ) ) :
  4. function bp_dtheme_enqueue_styles() {
  5.  
  6.         // Register our main stylesheet
  7.         wp_register_style( 'bp-default-main', get_template_directory_uri() . '/_inc/css/default.css', array(), bp_get_version() );
  8.         // Enqueue the main stylesheet
  9.         wp_enqueue_style( 'bp-default-main' );
  10.         // Default CSS RTL
  11.         if ( is_rtl() )
  12.                 wp_enqueue_style( 'bp-default-main-rtl',  get_template_directory_uri() . '/_inc/css/default-rtl.css', array( 'bp-default-main' ), bp_get_version() );
  13.  
  14.         // Responsive layout
  15.         if ( current_theme_supports( 'bp-default-responsive' ) ) {
  16.                 wp_enqueue_style( 'bp-default-responsive', get_template_directory_uri() . '/_inc/css/responsive.css', array( 'bp-default-main' ), bp_get_version() );
  17.                 if ( is_rtl() ) {
  18.                         wp_enqueue_style( 'bp-default-responsive-rtl', get_template_directory_uri() . '/_inc/css/responsive-rtl.css', array( 'bp-default-responsive' ), bp_get_version() );
  19.                 }
  20.         }
  21.  
  22.         //  Enqueue your child theme'stylesheet
  23.         wp_enqueue_style( 'childtheme',  get_stylesheet_directory_uri() . '/style.css', array(), bp_get_version() );
  24. }
  25. add_action( 'wp_enqueue_scripts', 'bp_dtheme_enqueue_styles' );
  26. endif;
clone this paste RAW Paste Data