Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Modifiying Group Homepage


r-a-y
Keymaster

@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:

https://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:

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

Skip to toolbar