Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Name


  • Jake Reimer
    Participant

    @jake-reimer

    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)

  • Prabin
    Participant

    @prabin04

    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
    Moderator

    @danbp

    @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


    Prabin
    Participant

    @prabin04

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


    Jake Reimer
    Participant

    @jake-reimer

    Thanks guys!

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