Skip to:
Content
Pages
Categories
Search
Top
Bottom

Modifiying Group Homepage

  • Avatar of theanduman
    theanduman
    Member

    @theanduman

    Howdy. I have installed BuddyPress and am very impressed. I would like to make a small modification to the homepage of each Group. Currently the group homepage shows the Group logo and if it is public or private. Then below that is all of the “Activity”, “Forums” etc….

    How do I modify the data next to the Group Name and Description on the homepage? Ideally I’d like a simple table showing things like “Region”, “Group Type”, etc…

    What file do I edit? Any suggestions to get me going?

    Thanks!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Avatar of r-a-y
    r-a-y
    Moderator

    @r-a-y

    You have two options:

    1) Use a child theme to override the group header

    Copy “/bp-themes/bp-default/groups/single/group-header.php” to your child theme’s directory keeping the directory structure intact.

    Make your modifications there.

    If you don’t know what a child theme is, read up here:

    http://codex.buddypress.org/how-to-guides/building-a-buddypress-child-theme/

    Stick with this method if you’re unfamiliar with WP’s actions and hooks.

    2) Use BP hooks to add content to the group header

    There are multiple hooks in the group header template that you could inject your content with.

    The following two are probably what you’re after:

    -bp_before_group_header_meta

    -bp_group_header_meta

    You could create your own functions and hook into these actions from your child theme’s functions.php.

    If what I’m saying is completely foreign to you, read up on this:

    http://codex.wordpress.org/Function_Reference/add_action

    Avatar of theanduman
    theanduman
    Member

    @theanduman

    excellent help @r-a-y !! That was just the direction I needed. Thanks for the fast and helpful response!

    Avatar of vonWolfehaus
    vonWolfehaus
    Member

    @vonwolfehaus

    Sorry for necrothreading, but I’m trying to REMOVE and ALTER tabs already there in the group header. For example, I want to change “Home” to “Activity” and remove “Send Invites” altogether. I’ve been searching through files forever… help?

    Avatar of imjscn
    imjscn
    Participant

    @imjscn

    I’ve been trying to edit the group header too. I want to move the “New Topic” button to item body div, exactly like what it shows on this BP site.
    I was able to remove the button from group header by add `remove_action( ‘bp_group_header_actions’, ‘bp_group_new_topic_button’ );`
    To add the button back into item body, I tried “ , the button shows up but when click, it doesn’t bring the new topic form up to front. What else should I add?

    Avatar of TimCarey
    TimCarey
    Participant

    @timcarey

    I would like to do something similar, but I would like to remove the group activity on the group’s main page. With a forum I don’t see why I need it. Also would like to make the group owners able to make a full home page of their group with banner and such. I thought I could use the forms under their profile to take in the data that they want on their page like the links or banner heading and description and other items. Like contact list ect. If at all possible this form creation could be on the settings button so a dozen have to be on their profile and they would be able to create more groups than one. On the group creation there would be the form and they can go back to change also. And it would be great to have this in the plugin instead of editing my child theme pages.

    Avatar of d3creative
    d3creative
    Member

    @d3creative

    @imjscn I have the exact same issue. Did you ever mange to find a solution?

    Avatar of imjscn
    imjscn
    Participant

    @imjscn

    no I didn’t find a solution. but I see BP1.5 provide an easier way to manage those buttons in functions.php, I don’t have time to try it out though.

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

You must be logged in to reply to this topic.