Skip to:
Content
Pages
Categories
Search
Top
Bottom

Group Adm Avatars

  • Avatar of kimanov
    kimanov
    Participant

    @kimanov

    Any ideas how I remove the avatars showing admins in a group (right) and make a list of the group admins names instead.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Avatar of shanebpdev
    shanebp
    Participant

    @shanebp

    As you can see, the avatars are added by function bp_group_list_admins
    in this file:
    buddypress\bp-templates\bp-legacy\buddypress\groups\single\group-header.php

    Unfortunately, that function has no filters.
    So you’ll need to create a template over-ride of group_header.php in your theme.
    Then replace bp_group_list_admins() with a custom function that you create in plugins/bp-custom.php

    function bp_group_list_admins lives in
    \buddypress\bp-groups\bp-groups-template.php

    You can copy it and change the function name and the html output of the foreach loop.

    You’ll probably need to do the same thing for bp_group_list_mods()

    Avatar of kimanov
    kimanov
    Participant

    @kimanov

    thx

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

You must be logged in to reply to this topic.