To be clear, and provide further details to demonstrate that this hasn’t been answered previously, I’m looking to have 2 nav items in every group: Forum, Members.
In that order, with the default page being Forum.
I have achieved the default page being Forum with this:
add_filter( 'bp_groups_default_extension', 'custom_bp_groups_default_extension' );
function custom_bp_groups_default_extension() { return 'forum'; }
But, again, when Activity Stream is disabled, Members becomes Home.
So right now my nav is: Home, Forum
I need a way to tell Home to revert to Members and go below Forum in the nav.
You could try creating a template overload of
buddypress\bp-templates\bp-legacy\buddypress\groups\single\home.php
And replace <?php bp_get_options_nav(); ?>
with whatever you want.
Before you do, grab the current nav output and then tweak it as you wish.
Couple things to consider / need direction on:
– the URL is still /home. Looking to have /members
– the “Manage” section for admins—what is the proper way to handle visibility in the nav?
Found the solution!
So, in /buddypress/bp-groups/bp-groups-loader.php
if found that it’s checking for a “front” template along with Activity Streams being disabled.
So, I just created an empty front.php
file in my overloads /buddypress/groups/single/
folder and, boom!
FYI – this approach still shows the ‘Home’ nav item to logged out users, but it can effectively be hidden via CSS.