Re: Is it possible to have custom themes for groups?
ops stupid error
<?php
/*
Author: Nicola Greco
Author URI: http://nicolagreco.com
*/
require_once( ‘bp-core.php’ );
require_once( ‘bpdev-core.php’ );
function bpdev_search_css() {
global $group_obj;
bpdev_theme_register_style(
‘my-styles’, // your style slug name
‘XBOX Styles’, // your style name
‘xbox_styles_function’, // callback
‘on’, // status “on” on default
‘off’, // off will not display it in admin interface
( $groups_obj->id == 1 ) ? ( true ) : ( false ); // the group ID
);
}
function xbox_styles_function() { // example of css content
?>
#header {
background: #FFF;
}
<?php
}
add_action( ‘bpdev_theme_extra_setup_globals’, ‘bpdev_search_css’ ); // it will add the style
?>