Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Custom group header for single group

  • @dcavins

    Keymaster

    I’m needing to do some fairly extreme customization for a single group and not sure about the best way to get there. For instance, I need to completely replace the div#item-header-content in the group header. Approaches I’ve considered:
    • Add a conditional in group-header.php (seems clunky, but straightforward)
    • use javascript to replace the default html with the desired html (seems unreliable)

    Is there a way to do this in a plugin-ish way, leaving the theme file alone? I can’t see how to remove elements using the action hooks, but I’m hoping…

    Thanks for any advice you can give,

    -David

Viewing 3 replies - 1 through 3 (of 3 total)
  • @hnla

    Participant

    What is the condition under which this will be called into play? Have you looked at the codex, read the theme compatibility guides on using custom templates based on group name. action etc that way you can have templates to suit certain conditions calling diff header files if necessary.

    @dcavins

    Keymaster

    Hugo-

    Thanks so much for the push. I was going about this the wrong way, and had totally forgotten about the template hierarchy: https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    Thanks for your quick reply,

    -David

    @hnla

    Participant

    Cool, it’s why we wanted that hierarchy 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Custom group header for single group’ is closed to new replies.
Skip to toolbar