Reply To: Hiding the BuddyPress menu on specific BP pages
I’m using the bp_nav_menu_args filter hook to modify the args sent to bp_nav_menu(). The code assumes you’re using bp_nav_menu() to display your navigation menu. By changing the value of $args['echo'] to false, a string containing the nav menu markup is returned (i.e. not echo’d to screen).
The 2nd line is just a conditional to govern which pages the filter function applies to.
I didn’t get the chance to test it myself. Can you provide more info on how it isn’t working?