How to Remove Admin Bar from Buddypress 1.1
-
I just updated Buddypress from 1.0 to 1.1. I use a plug that will remove the admin bar whether or not a user is logged in. After upgrading to BP 1.1, the plugin now just makes the top bar blank but the elements below it do not shift to occupy the space where the bar used to be.
-
There was a post where Any suggested to use bp-custom with just one line. I saw it yesterday, but can’t find it now. Why don’t you check documents if there’s entry on this?
You can add the following to your wp-config.php file:
define( 'BP_DISABLE_ADMIN_BAR', true );
add this to you custom style sheet
/* BuddyBar Removed - fixing gap */
body { padding-top:0px!important; }Thanks, I tried Simon’s solution and it worked
How do I only remove the admin bar from the wordpress admin area? Want to keep it everywhere else. I know Andy added the admin bar to the admin area some time back, but I haven’t found anything to remove it only from the admin section?
You could (probably, I haven’t tested this) use the following in wp-config.php to remove the admin bar from the WP Admin area only:
if ( is_admin() ) define( 'BP_DISABLE_ADMIN_BAR', true );
Thanks Simon!
That gets me a white page and this error message,
[02-Oct-2009 11:35:47] PHP Fatal error: Call to undefined function is_admin() in /(…)/wp-config.php on line 109
Doh! Good point. I did say untested.
You could try adding the line to your functions.php in the theme?
Hehe, thanks for trying anyways!
I’ve put it in the mu-plugins folder with a file called remove-adminbar.php. And it seems to be working fine! Thanks a lot!
I am under the impression that the site reacts a bit slower right now, but that is just a feeling, no php error found there.
I had the same issue as the original post here but the suggested custom CSS modification didn’t work for me. I solved the issue nevertheless, as below:
– Originally I used Remove BuddyPress Admin Bar 1.3 by Alessandro Raffa
That worked perfect (normal plugin for blog admins to use as they wish) *until* upgrading to BuddyPress 1.1. After the upgrade, the problem above appeared.
– Now I use Remove BuddyPress AdminBar 1.2 by NetWebLogic LLC
Just when I was about to mention my problem on this forum, I noticed that earlier today the “other” version (1.2) was released on the BuddyPress Developer > Plugins page.
What I did:
– I disabled the 1.3 plugin for all and mass-deactivated it.
– I enabled the 1.2 plugin and now all blogs activating it have no more space problem.
No idea why that is but I thought it might help some running the same version(s).
Is it possible to edit the options on the Admin bar ?
https://codex.buddypress.org/how-to-guides/modifying-the-buddypress-admin-bar/
Note: if you put the remove action / add action etc in functions.php (rather than bp-custom.php) then you don’t need to wrap them in a function.
- The topic ‘How to Remove Admin Bar from Buddypress 1.1’ is closed to new replies.