Change The Buddypress Admin Bar Logo And Link In WP3 & BP 1.2+!
Last Updated on Sunday, 12 September 2010 01:06
Written by Erock
Sunday, 12 September 2010 12:57
Written by Erock
Sunday, 12 September 2010 12:57
Wanna change the buddypress logo/text in the top left corner?
Wanna change the link of the logo/text of the Buddypress admin bar?
I’ve seen a few tutorials on how to do this, but they are all outdated with the old version of buddypress. Some changes in the latest release, necessitate a new solution.. Here it is!
Create a php file inside /mu-plugins/ named ‘erocks-buddypress-logo-mod.php’. Drop in the code below, don’t forget to edit in your variables!
{code type=php}
// CHANGE BP ADMIN BAR LOGO
function erocks_bp_adminbar_logo() {<
global $bp;
echo ‘<a href=”‘ . $bp->root_domain . ‘”><img id=”admin-bar-logo” src=”http://EXAMPLE.LOGO.URL.PNG” alt=”Eriks Hosting | Solutions For An Online World” /></a>’;<
}
remove_action( ‘bp_adminbar_logo’, ‘bp_adminbar_logo’ );
add_action( ‘bp_adminbar_logo’, ‘erocks_bp_adminbar_logo’ );
{/code}
// CHANGE BP ADMIN BAR LOGO
function erocks_bp_adminbar_logo() {<
global $bp;
echo ‘<a href=”‘ . $bp->root_domain . ‘”><img id=”admin-bar-logo” src=”http://EXAMPLE.LOGO.URL.PNG” alt=”Eriks Hosting | Solutions For An Online World” /></a>’;<
}
remove_action( ‘bp_adminbar_logo’, ‘bp_adminbar_logo’ );
add_action( ‘bp_adminbar_logo’, ‘erocks_bp_adminbar_logo’ );
{/code}
Just drop in your img src, your alt tag. remember to keep your img the same size as the original, or you will have to hardcode the new img sizes in the admin header file.
If you want to change the link the logo takes you to onclick, edit the <a href=”‘ .$bp->root_domain . ‘”> to whatever you want..
Tags: ashland, buddy bar, buddypress admin bar logo, buddypress mod, change buddypress top left, change link, change logo, change text, design, hawaii, oregon, web hosting, wordpress, wp3
This entry was posted on Sunday, September 12th, 2010 at 12:57 pm and is filed under Wordpress Tips.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
2 Comments
Leave a Reply
Categories
Archives
- Pro -Sites Shortcodes, Functions, And Level Checks
- Automatic WP Photo Gallery From Facebook Page Photos!
- Analytics 360 For Editors
- Add nofollow rel tags to image widget
- Image Widget Alignment Fix
- Add GD Star Rating next to Post Title
- Change The Buddypress Admin Bar Logo And Link In WP3 & BP 1.2+!
- New Dashboard Lockdown & WordPress To Buddypress Profile Page Plugin!
- Hide The WordPress Dashboard and wp-admin COMPLETELY!
- Blogs & Members Directory, Strange Nav Spacing FIX
Tags
art wear
ashland
ashland oregon
buddypress
chrome
clear dashboard
code
dashboard widgets
download
drop down menu
hawaii
iframe
image widget
kauai
kauai hawaii
kauai web
limit login attempts
multi-site
new blog defaults
oregon
paintball
plugin commander
plugin management
plugin management update
remove dashboard widgets
remove recent drafts
remove right now
safari
search engine optimization
shortcode
southern Oregon
web design
web development
web hosting
webkit
wordpress
wordpress mu
wordpress security
wp3
wp3 compatible
wpms
wpmu
wpmu2.9
wpmu compatible
wpmu security
Tags
art wear
ashland
ashland oregon
buddypress
chrome
clear dashboard
code
dashboard widgets
download
drop down menu
hawaii
iframe
image widget
kauai
kauai hawaii
kauai web
limit login attempts
multi-site
new blog defaults
oregon
paintball
plugin commander
plugin management
plugin management update
remove dashboard widgets
remove recent drafts
remove right now
safari
search engine optimization
shortcode
southern Oregon
web design
web development
web hosting
webkit
wordpress
wordpress mu
wordpress security
wp3
wp3 compatible
wpms
wpmu
wpmu2.9
wpmu compatible
wpmu security
















































Great thanks
Thanks
If you simply want’t to remove the Logo use:
remove_action( ‘bp_adminbar_logo’, ‘bp_adminbar_logo’ );