Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] How to add a menu item to the groups page?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    You can use the Group Extension API to build your own group area : https://codex.buddypress.org/developer/group-extension-api/


    Morgan Kay
    Participant

    @gwendydd

    I have read over that page a dozen times, and tried the code samples, but they don’t seem to do what I want. Could you give me more guidance?


    danbp
    Moderator

    @danbp

    Both example mentionned by imath on the codex are working. And the output goes nice when you’re on a group page. Just tested them with 2014 and the whole code in functions.php…

    But can you be more explicit of what you want ?
    Do you mean the group directory menu only ? Like this:
    | All Groups (3) | My Groups (1) | My item |


    Morgan Kay
    Participant

    @gwendydd

    I pasted all of the code from that page into my bp-custom.php, and it didn’t do anything.

    I want to change the menu on a group page, not on a user profile page. So when you view something like example.com/groups/group-name, the default menu is this:
    Home | Members | Admin

    I want to add an item to that menu, so it is:
    Home | Members | Campaigns | Admin


    danbp
    Moderator

    @danbp

    I confirm: the code example doesn’t work from within bp-custom.php. But he works in theme/functions.php

    And if all is goig well, you’ll have the right result after that. 😉


    Morgan Kay
    Participant

    @gwendydd

    Thanks, @danbp! You’re right – the code works in a theme’s functions.php, but not in bp-custom.php or in a plugin file. That’s a bit annoying for my project, but definitely glad to have it working!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] How to add a menu item to the groups page?’ is closed to new replies.
Skip to toolbar