#45950
 sharmstr
Moderator

Sounds like I’ve frustrated you and I apologize. It wasn’t my intent and it wasn’t a smart-assed gesture. I logged in to way too many Kleo servers to count in order to help.

I feel like I’m being dense here. In my mind this isnt hard, so I must not be fully understanding the requirement.

If you want to remove the logo, login, register or whatever else from the wp admin bar, its as easy as putting this code like in your functions.php file and tailoring it to your requirement.

COPY CODE

function remove_admin_bar_links() {
    global $wp_admin_bar;
    $wp_admin_bar->remove_menu('bp-login'); 
    $wp_admin_bar->remove_menu('bp-register'); 
   
}
add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );

Alternatively, you can ditch the admin bar all together and create your own menu links to the profile in either the Top Menu or Main Menu. I opt not to use the admin bar on my sites since its ugly and often times, plugin like to put their own links there so I’m constantly having to update code to hide it. To do so, you go to WP Admin > Appearance > Menus. Once there, you should see the Kleo section. Within the Kleo section, you’ll see a note explaining how to add links the the member bp profile sections. Its as easy as adding a link and putting ‘##profile_link##’ + /profile or /messages/ or /settings or /media behind it.

I’ve attached a sample on how you add it to a menu and a sample of one of my sites that does it that way.

HTH

Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

Log in with your credentials

Forgot your details?