Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Laura N
    Participant

    @tallerwp

    If you add in functions.php this code

    
    function remove_nav_items() {
        bp_core_remove_nav_item( 'forums' );
    }
    add_action( 'bp_setup_nav', 'remove_nav_items',301);

    You can remove the forum options in horizontal menu, but in vertical menu (profile user) no.

    I am trying it with css, but it is impossible

    li#wp-admin-bar-my-account-social-forums.menupop {display:none !important;}


    Laura N
    Participant

    @tallerwp

    @neijisly Do you have any solution??? πŸ™


    Laura N
    Participant

    @tallerwp

    O_o it is very difficult for me, but “activity” was just an example, If I want to remove a no default option? For example “docs”.

    In my buddypress show “docs” because I installed BuddyPress Docs plugin.

    function bpfr_remove_nav_tabs() {
    
    	bp_core_remove_nav_item( 'docs' ); 
       // and so on for each item you want to remove
    
    }
    add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );

    Laura N
    Participant

    @tallerwp

    Yes, ItΒ΄s true, I am sorry

    I have created the bp-custom.php inside plugin folder.

    then I have added this code between php

    function bpfr_remove_nav_tabs() {
    
    	bp_core_remove_nav_item( 'activity' ); 
       // and so on for each item you want to remove
    
    }
    add_action( 'bp_setup_nav', 'bpfr_remove_nav_tabs', 15 );

    But the activity options is visible πŸ™


    Laura N
    Participant

    @tallerwp

    Yes! I have tried all steps but impossible, nothing work. πŸ™

Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar