Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

if is group home () ? (3 posts)

Started 1 year ago by: Flynn

  • Profile picture of Flynn flynn said 1 year ago:

    Hey all, been a while.
    I’m building a site wherein each group is more of a department with subgroups for classes.
    As such, it needs to feel like each group is kind of it’s own site (branding for departments).
    The BP Group Homepage plugin is awesome and has really fit that bill. My problem is that now I don’t really want the group title / avatar on the front page (but the front page banner etc wont display on every group page).

    So if there was a way to either have the BP Group Frontpage banner display on every page, or, if I could say if (is_bp_frontpage) {} Else { normal bp group header stuff here }
    that would rock.

    Thoughts?

  • Profile picture of r-a-y r-a-y said 1 year ago:

    Almost!

    bp_is_group_home() is what you’re looking for.
    These type of template tags can be found in /bp-core/bp-core-templatetags.php.

  • Profile picture of Flynn flynn said 1 year ago:

    Ah ha!
    Thank you very much!