Guest User

Untitled

a guest
Aug 7th, 2013
96
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data