Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove 'Edit My Profile'


  • nylarosie
    Participant

    @nylarosie

    Is there a way to remove the ‘Edit My Profile’ item which is just below the logged in user name and above the ‘login’ on the Buddy Press menu?

    There is a nav item for the profile below so I don’t really need this twice. Hiding it would be fine.

    Thanks

    Nyla

Viewing 7 replies - 1 through 7 (of 7 total)

  • valuser
    Participant

    @valuser

    Perhaps try hiding it with css

    try

    `
    li#xprofile-personal-li, li#wp-admin-bar-edit-profile, li#wp-admin-bar-my-account-xprofile.menupop {
    display:none;
    }
    `

    this may remove all references to profile in the Buddy Press menu? Choose to leave some in if preferred.


    nylarosie
    Participant

    @nylarosie

    Hi valuser…That worked! Thank you. (just removed edit profile and left the rest)

    I also want to re-order the items so that ‘profile’ comes first (currently forums, friends, groups, messages, settinge , profile) to profile, friends, messages, groups, forums, settings.

    I’m putting in a new topic…I know that this has been raised before bu nothing seemed to work! If you have any idea please let me know…Nyla


    nylarosie
    Participant

    @nylarosie

    Hello again,

    Under ‘forums’ the ‘favorite topics’ tab does not seem to work. I would like to remove/hide it. What is the CSS code as it is a sub item of forums’

    I also want to ADD an item to the ‘Groups’ subnav which is ‘Join Groups’ which takes the user to the main Groups page which is on the wp navigation primary menu.

    Cheers – Nyla


    danbpfr
    Participant

    @chouf1

    hi @nylarose,

    take a look here :
    http://bp-tricks.com/snippets/code/arrange-group-profile-navigation-menu/

    If you copy/paste the code, take care to retrieve the /* before the second function name.


    nylarosie
    Participant

    @nylarosie

    Hi…I tried the following to re-order my navigation and remove the ‘favorite topics’ under forums..It did not work! Any ideas??..Nyla

    function tricks_change_bp_tag_position()
    {
    global $bp;

    $bp->bp_nav[‘profile’][‘position’] = 10;
    $bp->bp_nav[‘friends’][‘position’] = 20;
    $bp->bp_nav[‘messages’][‘position’] = 30;
    $bp->bp_nav[‘groups’][‘position’] = 40;
    $bp->bp_nav[‘forum’][‘position’] = 50;
    $bp->bp_nav[‘settings’][‘position’] = 60;
    }
    add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 );
    add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 );

    function bbg_remove_favorite_topics_from_forum() { bp_core_remove_sub_nav_item(
    bp_get_current_forum_slug(), ‘favorite-topics’ ); }
    add_action( ‘bp_setup_nav’, ‘bbg_remove_favorite_topics_from_forum’ );
    ?>


    danbpfr
    Participant

    @chouf1

    oops, sorry, was code for the old buddybar. It’s  now called Toolbar and implemented by default on BP, but i don’t use it.
    Also, be a bit more explicit next time you ask for something. They’re many menus in BP. 😉

    Use this in functions.php (tested: works on WP 3.5/BP 1.6.3 MS)

    
    function admin_bar_remove_this(){
    global $wp_admin_bar;
    $wp_admin_bar->remove_node('my-account-forums-favorites');
    }
    add_action('wp_before_admin_bar_render','admin_bar_remove_this');

    The node id’s are all in the footer html of each page where the toolbar appears. This means you have to view the page source code to get the node id you want to remove.
    Menu items are in li tags and each li as a ID which begins with “wp-admin-bar-” followed by “-node-name”
    Other tips here: http://jeffersonsnewspaper.org/2012/tips-for-using-the-wordpress-admin-bar-with-buddypress/

    Legacy reference here:
    https://codex.wordpress.org/Function_Reference/remove_node
    https://codex.buddypress.org/developer/theme-development/modifying-the-buddypress-admin-bar/


    nylarosie
    Participant

    @nylarosie

    Hi – manged to hide the ‘favorite topics’…now need to :

    1.Add the ‘groups’ main page from wp menu to the groups bp toolbar and

    2. Reorder the main nav on the toolbar

    ! Any suggestions?

    Nyla

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Remove 'Edit My Profile'’ is closed to new replies.
Skip to toolbar