-2

I added a custom header(header-new.php) to the site http://parentctrhub.staging.wpengine.com for logged in users of buddypress. The code that I added in default page template is:

if ( is_user_logged_in() ) {
get_header('new');
} 
else {
get_header();
}

But, now the black buddypress toolbar/admin bar has stopped showing. It is shown for logged out users (if I check the option in buddypress settings) but not for logged in users. Weirdly, now the toolbar doesn't show up even if I undo all the changes.

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

0

Its resolved. I just added:

show_admin_bar( true );

in functions.php file and admin bar is again showing up.