Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to modify subnav items

  • Is there any way to hide the subnav items without removing the items from the adminbar? A search gave me the following codes:

    function boone_remove_blogs_nav() {
    bp_core_remove_nav_item( ‘friends’ );
    bp_core_remove_nav_item( ‘settings’ );
    bp_core_remove_nav_item( ‘groups’ );
    }
    add_action( ‘bp_setup_nav’, ‘boone_remove_blogs_nav’, 15 );

    When I use this code I remove the items from the subnav and the adminbar. The user is no longer able to use the functions. The reason for asking this is that the subnav menus is also available on the adminbar on top of the page. It is not necessary to have same menu on several places on the page.

    I have also problem removing the actions “Followers” and “Following”. It seems that these actions does not response to the code I use.

    Thank you for helping me solve this problem!

    Regards
    Phuong

  • The topic ‘How to modify subnav items’ is closed to new replies.
Skip to toolbar