Skip to:
Content
Pages
Categories
Search
Top
Bottom

Problem with removing Home in group

  • Please help me, where can I remove Home tab from buddypress group page , i want to have only Admin, Members and Send invites tabs. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of Svenl77
    Svenl77
    Participant

    @svenl77

    try this:
    bp_core_remove_subnav_item( bp_get_current_group_slug(), ‘home’ );

    Sorry , but what have i do whit this ?

    Avatar of Svenl77
    Svenl77
    Participant

    @svenl77

    add it into a function in your functions.php and hook this function into bp_setup_nav

    read more here http://bpdevel.wordpress.com/tag/bp_core_remove_subnav_item/

    hope that helps you

    How hook I this function into bp_setup_nav?

    Avatar of Svenl77
    Svenl77
    Participant

    @svenl77

    add it in your function.php

    function remove_group_home_nav() {
    bp_core_remove_nav_item( bp_get_current_group_slug(), ‘home’ );
    }
    add_action( ‘bp_setup_nav’, ‘remove_group_home_nav’ );

    Avatar of Netz
    Netz
    Participant

    @netz

    Hi!
    Ehhh any functions.php ?? Themes, BP or in a specific folder?

    Running WP 3.9.1 and BP 2.0.1

    I also want to remove “HOME” in BP
    So the result should be first MENU Item is “FORUM” then “MEMBERS” “SEND INVITATIONS” and “ADMIN” (for admins only)

    As default the menu is :
    “HOME” then “FORUM” then “MEMBERS” “SEND INVITATIONS” and “ADMIN” (for admins only)

    But users that get’s in at the “HOME” level post messages thinking they are posting in the FORUM…? So that is why I want to hide it or take it off!

    Hope this solution works – But are unsure where to stick it… :-)

    Best regards

    Nets

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

The topic ‘Problem with removing Home in group’ is closed to new replies.