Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: BP admin bar on bbpress front page


r-a-y
Keymaster

@r-a-y

Okay everyone!

Here’s an update to my code for the BP admin bar in bbPress.

Keep the existing recreate_bb_admin_bar() function, but for the last part (the add_action’s) use this:

add_action('bb_foot', 'recreate_bb_admin_bar');
add_action('bb_admin_footer', 'recreate_bb_admin_bar');
add_action( 'bb_head', 'bp_core_admin_bar_css', 1 );
add_action( 'bb_admin_head', 'bp_core_admin_bar_css', 1 );

This uses bbPress’ default header and footer hooks instead of WordPress’, so in theory, you could get rid of wp_head and wp_footer in your bbPress theme.

You’ll still need to keep the deep integration code in your bb-config.php though!

Also this code is updated so you can see the BP admin bar in the bbPress admin area. The code before did not work for that!

Skip to toolbar