Skip to:
Content
Pages
Categories
Search
Top
Bottom

Menu Customization

  • @aslamdoctor

    Member

    I want to add “Requests” link into “Friends” menu which is currently in a 3rd level sub menu.
    I did try to add the following code in bp-friends.php file in friends_setup_nav() function

    bp_core_new_nav_item(
    array(
    ‘name’ => __( ‘Requests’, ‘buddypress’ ),
    ‘slug’ => ‘friends/requests’,
    ‘position’ => 60,
    ‘screen_function’ => ‘friends_screen_requests’,
    ‘default_subnav_slug’ => ‘friends/requests’,
    ‘item_css_id’ => $bp->friends->id
    )
    );

    but it didn’t work. It added the link in “My Account” menu in place of “Friends” menu.

    Any suggestions??

  • The topic ‘Menu Customization’ is closed to new replies.
Skip to toolbar