Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove nav items and hide header

  • @bryanbatcher

    Participant

    I want to remove “Notifications”, “Messages”, and “Settings” from the first nav bar on user pages.

    I’d also like to hide the user header (the profile pic, username, and cover photo section) on certain user pages.

    Any help would be appreciated.

    BP 2.5.3
    WP 4.5.2

Viewing 2 replies - 1 through 2 (of 2 total)
  • @danbp

    Participant

    @bryanbatcher,

    you can use a function within bp-custom.php
    Something like:

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

    References
    nav-item
    http://hookr.io/plugins/buddypress/2.4.3/functions/bp_core_remove_nav_item/
    sub-nav-item

    bp_core_remove_subnav_item

    For the header thing, see template file and made your modification from within a child-theme.
    – profile pic and username: bp-templates/bp-legacy/buddypress/members/single/member-header.php
    – cover image: bp-templates/bp-legacy/buddypress/members/single/profile.php

    @bryanbatcher

    Participant

    Thanks! The first solution worked. I’m still trying to figure out what to do with the templates, though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar