Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Display name instead of Username

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

  • Venutius
    Moderator

    @venutius

    Yes mine does too, not sure this can be changed


    katiemeeks
    Participant

    @katiemeeks

    Does anyone know how to fix this? Has to be a common issue and I cant imagine most people want a display name to show and not @username


    Venutius
    Moderator

    @venutius

    I think the idea is that the Username is the unique reference point for each user and this is used for messaging too, hence @Username. One the other hand the display name can be anything and multiple users can have the same display name.


    katiemeeks
    Participant

    @katiemeeks

    I get that but its not user friendly. When someone clicks on another persons profile, they see @username – they dont see their name.

    This is cant be something everyone is okay with and there is not a fix, right? Or am I missing something here?

    When a user clicks on a profile, they should see my name, not my username. I am not talking about coding or URL, the large heading on the profile where it should display a persons name.


    shanebp
    Moderator

    @shanebp

    It’s easy to add a member’s display name.
    Create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\single\member-header.php

    Then replace this:

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

    With this:

            <?php if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?>
                <h2 class="user-fullname">
                    <?php bp_displayed_user_fullname(); ?>
                    <small>@<?php bp_displayed_user_mentionname(); ?></small>
                </h2>
            <?php endif; ?>

    katiemeeks
    Participant

    @katiemeeks

    worked great! thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] Display name instead of Username’ is closed to new replies.
Skip to toolbar