There are two filters for the admin bar logo that you can take advantage of:
In your bp-custom.php file, create one if you don’t have one, in /mu-plugins put this:
function my_admin_bar_logo($content){
return “<your admin bar logo path>”;
}
add_filter(‘bp_admin_bar_logo_src’, ‘my_admin_bar_logo’);
function my_admin_bar_alt_text($content){
return “< your admin bar alt text>”;
}
add_filter(‘bp_admin_bar_alt_text’, ‘my_admin_bar_alt_text’);
if you’ve bpdev plugins, you can change the image link in wp-admin => bpdev admin => plugins
Is there a Shortcut available to reference to the Template/Theme directory?
I tried something like this, but unfortunately there is no BP_TEMPLATE_URL available:
‘echo ‘root_domain . ‘”><img id=”admin-bar-logo” src=”‘ . apply_filters( ‘bp_admin_bar_logo_src’, BP_TEMPLATE_URL . ‘/images/admin_bar_logo.gif’ ) . ‘” alt=”‘ . apply_filters( ‘bp_admin_bar_logo_alt_text’, __( ‘BuddyPress’, ‘buddypress’ ) ) . ‘” />‘;
?>’
Does anyone knows the correct Tag for this? I also want to move the admin_bar_logo.gif into my theme directory.
I figured out that there is TEMPLATEPATH available. However when i use TEMPLATEPATH it refers to the absolute path rather than to the relative path on my Server?! Is there anybody who could help me with this?
echo '<a href="' . $bp->root_domain . '"><img id="admin-bar-logo" src="' . apply_filters( 'bp_admin_bar_logo_src', TEMPLATEPATH . '/images/admin_bar_logo.gif' ) . '" alt="' . apply_filters( 'bp_admin_bar_logo_alt_text', __( 'BuddyPress', 'buddypress' ) ) . '" /></a>';
21green-
Since this thread had not seen activity for at least a month, it would have been better to start a new thread. You will receive a faster response!
I just posted these new guidelines: https://buddypress.org/forums/topic.php?id=2543