Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Name

  • @jake-reimer

    Participant

    On the user Profile I would like to know how to show the Display Name instead of the User Name in the (@username) section. If anyone could help that would be awesome, thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @prabin04

    Participant

    hi @jake-reimer, you can do this. you need to customize member-header.php file inside your child theme.

    Copy BuddyPress *members* folder from bp-default folder inside your child theme, and search for member-header.php file located inside members->single folder.

    and inside member-header.php file, find this code,

    <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
    <span class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></span>
    <?php endif; ?>

    replace bp_displayed_user_mentionname(); this with your desired function name. either first name, or full name or DisplayName.

    Cheers.

    @danbp

    Participant

    @jake-reimer,

    if you don’t use bp-default theme, this advice from @prabin04 is wrong:
    Copy BuddyPress *members* folder from bp-default folder inside your child theme, and search for member-header.php file located inside members->single folder.

    You need to take the copy from bp-templates/bp-legacy/buddypress/

    Theme Compatibility – Customizing

    @prabin04

    Participant

    well, yeah @danbp is right. Only if you are using bp-default theme, follow my instruction.
    But it works too.

    @jake-reimer

    Participant

    Thanks guys!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display Name’ is closed to new replies.
Skip to toolbar