Re: How to remove the search/login bar
You can disable the admin bar completely by putting this in your bp-custom.php:
remove_action( 'wp_footer', 'bp_core_admin_bar', 8 );
remove_action( 'wp_head', 'bp_core_admin_bar_css', 1 );
remove_action( 'admin_footer', 'bp_core_admin_bar' );
remove_action( 'admin_menu', 'bp_core_add_admin_css' );
add_action( 'bp_home_theme_functions', 'my_remove_adminbar');
add_action( 'bp_member_theme_functions' , 'my_remove_adminbar');
If you want to leave the gap that the css reserves for the bar then don’t put in the remove_action()’s for the css. You can disable this by commenting out the two lines: add_action(‘bp_home_theme_functions’…) and add_action(‘bp_member_theme_functions’…).
You can selectively disable/enable it for the home theme or the member theme by choosing to disable/enable it with the above technique also.
The member and home theme’s functions.php file triggers those two functions as the last thing that happens in both areas. The hook is designed to allow just such a thing. I’m so glad that Andy is ‘hook happy’.