[Resolved] Admin/Buddy Bar: Where to Edit
-
OK, I finally upgraded my site to the latest of everything.
WordPress Multisite 3.5.1 (with subdomains)
BuddyPress 1.7.1
Tetris ThemeEverything looks ok so far, haven’t really tested functionality yet.
Realized that I really do like the old admin bar (that was in BuddyPress 1.5).
Currently I’m seeing the basic WordPress admin bar.
I’d like to get my old admin bar back. I hacked it and it worked beautifully to maneuver through the entire site.
What is/are the name/s of the specific files I would need to edit to recreate my old admin bar?
(I’m very confused as to what is an “admin bar” and what is a “buddy bar” so I don’t know if I am referencing them correctly)
Thanks!
-
@kkradel
Please see @mercime ‘s response in this thread to get the buddybar back:
https://buddypress.org/support/topic/how-do-i-show-member-actions-like-log-in-change-password/Thanks!
Can’t get it to work yet … this theme has WP Admin Bar turned off by default and the functions.php file is a bit tetchy. I had added this bit to the functions file to get the WP Admin Bar to show up:
show_admin_bar(true);
When I added this bit to the bp-custon.php file:
<?php // Bring BuddyBar back add_filter( ‘bp_use_wp_admin_bar’, ‘__return_false’ ); ?>
The site threw an error on the last line of the functions.php file. Can’t figure out how that is related. But I’ll continue to work around it and see if I can fix it.
Even when I deleted either/or/both of the new snippets the functions.php file threw an error until I reloaded from the original theme files.
Thanks!
@kkradel
You may have introduced some whitespace in the file. Make sure there is no empty lines before or after the opening and closing php tags as this typically does fire off a headers_already_sent error. If that is not it then please supply the error message.I think you are correct as I re-entered
show_admin_bar(true);
into the functions.php file with no white space and it’s fine now.
I’m still getting the WP Admin Bar though and not my old buddy bar. (Yes the bit is in bp-custom!)
Thanks!
@kkradel
When copying the code from here the single quotes get converted which makes the code incorrect. Remove that code and copy and paste the code directly from the below link and that should get it working.
http://pastebin.com/jxLVnq11Yes!
Success!
Thank you @bphelp
I did not copy the single quotes but I did have the php opening and closing around it, and I think that’s what was incorrect. Or maybe something from the single quotes got included … in any case it works now!
Onward!
- The topic ‘[Resolved] Admin/Buddy Bar: Where to Edit’ is closed to new replies.