BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Small Width (mobile) view, how to remove menu items.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #47099
    @zerosimms

    I’ve got an issue that you can see in the screenshot attached, basically I want to remove all the ‘Star’ icons; they all point to “/…/username”

    Now, I got a feeling it’s because in my child theme I’m hiding certain elements like this:

    $bp->bp_nav['messages'] = false;

    My question is, does anyone know how I can remove this extra icons? Many thanks

    Answers

    #47213

    Anonymous
    @

    Hi @zerosimms, please paste the function you have used to remove the tabs.
    Regards
    Varun Dubey

    #47489
    @unstoppablerecordingmachine

    Here’s how I did it:

    function bb_setup_profile_tabs() {
    	if(!is_plugin_active( 'buddypress-docs/loader.php' ) ) {
    		remove_action('template_redirect', 'bb_child_doc_menu_count_tabs', 999);
    	}
    	global $bp;
    	$bp->bp_nav['messages'] = false;
    	$bp->bp_nav['settings'] = false;
    	$bp->bp_nav['following'] = false;
    }
    add_action( 'init' , 'bb_setup_profile_tabs' , 999 );

    I’m having the same issue:

    #47765

    Anonymous
    @

    Hi @unstoppablerecordingmachine
    Try to include following css inside the custom css
    hopefully it will solve the issue

    
    #-personal-li
    {
    display:none !important;}
    
    

    and it will be better you keep nav modification codes in separate function

    
    function bb_remove_few_nav() {
    	
    	global $bp;
    	$bp->bp_nav['messages'] = false;
    	$bp->bp_nav['settings'] = false;
    	$bp->bp_nav['following'] = false;
    }
    add_action( 'bp_setup_nav', 'bb_remove_few_nav' );
    

    Regards
    Varun Dubey

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Small Width (mobile) view, how to remove menu items.’ is closed to new replies.