-
Henry Wright replied to the topic Hiding the BuddyPress menu on specific BP pages in the forum How-to & Troubleshooting 10 years, 2 months ago
Hi @tomatillo
It’s definitely possible. Actually, there’s probably many ways to do it.
Try adding this to your theme’s functions.php file:
function my_custom_bp_nav_menu( $args ) {
if ( bp_is_current_action( 'following' ) || bp_is_current_action( 'followers' ) )
$args['echo'] = false;return $args;
}
add_filter(…[Read more] -
bp-help replied to the topic [Resolved] PHP for BuddyPress pages? in the forum How-to & Troubleshooting 10 years, 2 months ago
@tomatillo
bp_is_activity_component, bp_is_members_component, bp_is_profile_component, etc.
Reference: -
Henry Wright replied to the topic [Resolved] PHP for BuddyPress pages? in the forum How-to & Troubleshooting 10 years, 2 months ago
Hi @tomatillo
Try bp_current_action( ‘following’ ) and bp_current_action( ‘followers’ )Edit: I actually meant use
bp_is_current_action()
sobp_is_current_action( 'following' )
andbp_is_current_action( 'followers' )
-
Henry Wright replied to the topic [Resolved] PHP for BuddyPress pages? in the forum How-to & Troubleshooting 10 years, 2 months ago
Hi @tomatillo
Trybp_current_action( 'following' )
andbp_current_action( 'followers' )
Edit: I actually meant use
bp_is_current_action()
sobp_is_current_action( 'following' )
andbp_is_current_action( 'followers' )
-
Henry Wright replied to the topic [Resolved] PHP for BuddyPress pages? in the forum How-to & Troubleshooting 10 years, 2 months ago
Hi @tomatillo
Try
bp_current_action( 'following' )
andbp_current_action( 'followers' )
@tomatillo
Active 3 years ago