How to add to the subnavigation in a single group display.
WPMU DEV Community
How to add to the subnavigation in a single group display.
Inactive
33 pointsStarting to get into this DEV thingI'm new here
lionsarah2011
Member
—
23rd January 2011 02:51
Hi,
Assuming I login as admin, when I select a single group (from the list of groups), there is a sub-navigation bar that displays Home|Admin|Forum|Members|Send Invites under the group avatar. Question I have is: How do I add a new item to this sub-navigation menu (I'll be using a parent-child theme framework so I won't edit the orignal packaged theme). For instance in addition to the item I've shown above I would like to add the item "What's New", which would be visible to admins, and non-admins alike. Please advise.
Assuming I login as admin, when I select a single group (from the list of groups), there is a sub-navigation bar that displays Home|Admin|Forum|Members|Send Invites under the group avatar. Question I have is: How do I add a new item to this sub-navigation menu (I'll be using a parent-child theme framework so I won't edit the orignal packaged theme). For instance in addition to the item I've shown above I would like to add the item "What's New", which would be visible to admins, and non-admins alike. Please advise.
Thanks, I was just curious if there was a cleaner way - is there a WP hook I can associate with when the sub-navigation is being created for a single group? Thanks..
Responses (4)
Sales & Support Lead — 23rd January 2011 20:35 #
Hiya lionsarah2011,
This isn't a quick/easy customization and will depend somewhat on the theme you're using as a parent.
With the Studio theme for example, you can look at studio/groups/single/home.php to see how the other links are added: bp_get_options_nav()
You should be able to add a link to your own page by modifying this file.
Hope this helps!
Member — 25th January 2011 18:01 #
Thanks, I was just curious if there was a cleaner way - is there a WP hook I can associate with when the sub-navigation is being created for a single group? Thanks..
Sales & Support Pro — 25th January 2011 18:19 #
Hi lionsarah2011!
This filter reference suggests that there is a filter for bp_get_options_nav() but I can't find any documentation for it.
One of our developers might be able to provide more information....
Phil
Member — 26th January 2011 03:10 #
Ok, thanks..keep me posted when you find more info on the filter for bp_get_options_nav().
Become a member