Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem disabling admin bar

  • @javiervd

    Member

    Hi all,

    I’m using this on my wp-config file to disable the admin bar:
    define(‘BP_DISABLE_ADMIN_BAR’, true);

    Which works almost great, it removes the admin bar from the WP dashboards and from my theme’s front end when the user is logged out but it stills shows when I’m logged in on the frontend, I don’t know why, isn’t this constant supose to disable it altogether?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • @mlreed328

    Member

    That’s actually the WordPress Admin Bar and it resembles the Buddypress Admin Bar.
    To disable it add this to functions.php:

    add_filter( 'show_admin_bar', '__return_false' );

Viewing 1 replies (of 1 total)
  • The topic ‘Problem disabling admin bar’ is closed to new replies.
Skip to toolbar