Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing the Member Navigation Menu

  • @benbuzztoniccom

    Participant

    Hi,

    I’ve been trying to customize a BuddyPress site (WP v4.2.3 BP v2.3.2.1) so that the member nav menus are not all together on one page. I’d like to separate out each of the functions (activity, messages, notifications, friends, etc) into their own page. To do that I’d like to eliminate the side nav menu on those and move that to the a standard wordpress menu at the top of the page. I’m just using the standard Twenty Fourteen theme. I’ve tried eliminating each of the items on the menu using unset($bp->bp_nav[‘activity’]) in bp_setup_nav and that mostly works in that it eliminates the menu items but then leaves the empty div as one big blank area. I’d like to remove that completely. Any thoughts on how I might be able to accomplish that?

    Thanks,
    Ben

Viewing 6 replies - 1 through 6 (of 6 total)
  • @benbuzztoniccom

    Participant

    I’m still struggling with this. Would anyone be able to point me in the right direction?

    Thanks,
    Ben

    @shanebp

    Moderator

    You want to remove navigation from all profile pages?
    Create a template overload of this file:
    bp-templates\bp-legacy\buddypress\members\single\home.php

    And remove this div: <div id="item-nav">

    @benbuzztoniccom

    Participant

    Thanks for the quick response, shane.

    I think I may need some more remedial help though as in trying to do that I broke the page.

    I am using the twentyfourteen theme as a base so have created a child of that called twentyfourteen-child.

    To override the home.php page like you suggested. I created a new file at:
    twentyfourteen-child\buddypress\members\single\home.php

    Even just copying the exact same file over from the buddypress members\single folder broke the page (lost most of the styling and item body and left sidebar etc) so clearly I’m doing this wrong.

    I think I need to have a better idea of how template overriding works. I’ve searched through the codex but have not been able to find anything that helps. What’s the best place to learn more about that? A how-to tutorial or something like that would be great.

    Thanks again for the help and support,
    Ben

    @benbuzztoniccom

    Participant

    I poked around and re-read the codex and watched the BuddyCamp Brighton video with Hugo Ashmore (the video was really good btw).

    Unfortunately I am still stuck. I suspect I’m missing some little but fundamental thing but can’t figure out what that is.

    My child theme folder only includes three files:
    twentyfourteen-child\buddypress\members\single\home.php
    twentyfourteen-child\functions.php
    twentyfourteen-child\style.css

    home.php is an exact duplicate of the file at plugins\bp-themes\bp-default\members\single\home.php
    styles.css is empty (except for comments) and functions.php only contains:
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }

    I’m baffled. Anyone have an idea for me to try or some additional how-to docs on how to properly setup a child them for both wp and bp?

    Thanks,
    Ben

    @benbuzztoniccom

    Participant

    ok I figured this out. And I was in fact missing something pretty fundamental. I was copying from the \bp-themes\bp-default\ folder instead of from \bp-templates\bp-legacy\buddypress. Once I fixed that it all came together.

    Can someone explain the difference between the two folders. FWIW, the bp-legacy name was throwing me off. The word legacy to me hinted at something that was deprecated so I had assumed I should stay away from there.

    The support topic https://buddypress.org/support/topic/how-to-create-template/ set me straight.

    Thanks,
    Ben

    @shanebp

    Moderator

    Yeah – the names are very confusing and unfortunate.

    bp-default is deprecated and only there for compatibility with the few sites that still use it.

    I apologize for pointing you to that dir in my first answer – corrected.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Removing the Member Navigation Menu’ is closed to new replies.
Skip to toolbar