Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Admin bar disappeared (4 posts)

Started 1 year, 8 months ago by: PJ

  • Profile picture of PJ PJ said 1 year, 8 months ago:

    I tried out the buddypress sliding login panel, but wasn’t impressed because it doesn’t display notifications well. I uninstalled but I’m not able to get my admin bar to display for users. Any thoughts on what I might do?

    I noticed this in my functions.php but even if I omit this code it doesn’t appear for users.

    function arit_remove_buddypress_admin_bar_install() {}
    function arit_remove_buddypress_admin_bar_init() {
    if ( function_exists('bp_core_admin_bar') ) remove_action( 'wp_footer', 'bp_core_admin_bar', 8 );
    if ( function_exists('bp_core_admin_bar_css') ) {
    remove_action( 'wp_head', 'bp_core_admin_bar_css', 1 ); }
    if ( function_exists('bp_core_add_admin_css') ) remove_action( 'admin_menu', 'bp_core_add_admin_css' ); }
    function arit_remove_buddypress_admin_bar_uninstall() {}
    
    register_activation_hook( __FILE__, 'arit_remove_buddypress_admin_bar_install' );
    add_action( 'init', 'arit_remove_buddypress_admin_bar_init' );
    register_deactivation_hook( __FILE__, 'arit_remove_buddypress_admin_bar_uninstall' );
  • Profile picture of govpatel govpatel said 1 year, 8 months ago:

    when you installed buddypress sliding login panel you had to put this code define( ‘BP_DISABLE_ADMIN_BAR’, true );
    in wp-config.php to hide the buddypress admin bar just take it out and deactivate buddypress sliding login panel.

  • Profile picture of PJ PJ said 1 year, 8 months ago:

    Ah, wonderful. Thank you very much @govpatel

  • Profile picture of Sixgunzx Sixgunzx said 1 year, 8 months ago:

    I am having a simular issue. I am using the Jooc theme, wordpress 3.0.1 and Buddypress 1.2.5.2, my admin bar is not showing on the front page. It does seem to be showing in the admin panel. I have deactivated, and deleted bp, and I checked the functions file for the theme as well, and it has the same code as posted above.