Skip to:
Content
Pages
Categories
Search
Top
Bottom

Getting rid of ‘Member primary navigation’


  • John
    Participant

    @jhob

    I’m trying to create an entirely custom buddypress member profile page.

    Have worked out the template overrides for the header and main body (front.php, member-header.php) but can’t work out how to override the member primary navigation menu.

    I know I can get rid of individual items with

    bp_core_remove_nav_item( 'forums' );

    but what I want to do is get rid of the entire menu as it’s not required.

    Anyone know how to do this?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

  • shanebp
    Moderator

    @shanebp

    Did you try just removing the calls to the nav from the template ?

    Since you mention ‘Member primary navigation’, I’ll assume you are working the bp-legacy templates.

    Open buddypress\bp-templates\bp-legacy\buddypress\members\single\home.php
    Remove: bp_get_displayed_user_nav();
    And perhaps: do_action( 'bp_member_options_nav' );


    John
    Participant

    @jhob

    Yes, the site I’m working on has loads of legacy code and is on 2.9.4. I have the fear over upgrading to 3.2.0!

    Thanks for the answer, worked perfectly. Starting to get to grips with the BP template structure now. 🙂

    cheers
    John


    KJ Roelke
    Participant

    @kjroelke

    Hi,
    I’ve got the same issue but removing the code from my BuddyPress-child-directory doesn’t solve the issue.

    For the moment, I’ve hidden it via CSS, but why wouldn’t altering members/single/home.php not work?

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