Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile display first/last name & Username


  • Lerroy
    Participant

    @lerroy

    Hey

    Quick question, how do I display the users first and last name in the user profile page. at the moment it only displays the @username

    Image attached is how I would like it to look – Here

    Here is how it looks now – here

Viewing 1 replies (of 1 total)

  • Lerroy
    Participant

    @lerroy

    Ok I was able to fix this issue.

    I added this code to my members-header.php

    <?php $Name = bp_get_profile_field_data( 'field=Name' ) ;
    echo '<h2 class="Name-fields_main">' .$Name. '</h2>';
    ?>

    added the code on line 22 just under this

    <div id="item-header-content">

Viewing 1 replies (of 1 total)
  • The topic ‘Profile display first/last name & Username’ is closed to new replies.
Skip to toolbar