Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Add wp_admin_bar to a BP theme


pcwriter
Participant

@pcwriter

@gunju2221

Hi again! As I mentioned in my 2nd post: “Removing the bp-adminbar is easy, it’s calling the wp one afterwards that’s got me stuck.”

Removing the bp-adminbar is not the problem. The problem is in showing the WP bar after removal of the bp-adminbar. Or, I should say: the problem WAS… It turns out the call to display the WP bar is surprisingly simple: `show_admin_bar(true);` So, the following in functions.php efectively replaces the bp-adminbar with the WP version. Now I can create the switch for my theme. Thanks for your help!

`define ( ‘BP_DISABLE_ADMIN_BAR’, true );
show_admin_bar(true);`

Skip to toolbar