Hi, do you mean from the users profile tabs?
Here’s how to remove forums from all users profile tabs and toolbar menu, this code would need to go in your child-themes functions.php:
function venutius_remove_forums_on_usermenu() {
global $wp_admin_bar;
if ( bp_use_wp_admin_bar() ) {
$wp_admin_bar->remove_node( 'my-account-forums' );
}
}
add_action( 'wp_before_admin_bar_render', 'venutius_remove_forums_on_usermenu' );
function venutius_remove_profile_forums_tab() {
bp_core_remove_nav_item( 'forums' );
}
add_action( 'bp_actions', 'venutius_remove_profile_forums_tab' );
It wont work for me
What am i doing wronh?
I paste this befor ?> in my functions.php
No effect.
Greetz edwin
i fixed it:
.users-nav #settings-personal-li { display: none; } //settings tab
#community-personal-li { display: none; } //forums tab
custom css