Skip to:
Content
Pages
Categories
Search
Top
Bottom

Want to show the Name instead of User name in user Profile.


  • ovihasan
    Participant

    @ovihasan

    I develop a site. Where I use Buddypress plugin for User profile. When I visit any user individual profile in the beginning of the profile it shows user username. But I want to show the Name of the user there instead of username.

    I’m hoping that there is an easy answer to this.

    Here is the Screenshot of the problem and what i want shown there.

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

  • Venutius
    Moderator

    @venutius

    Are you using BP Nouveau? Are you using Cover-images?

    if so you would need to overload the plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/cover-image-header.php file:

    1. Setup a child theme.
    2. make a copy of cover-image-header.php
    3. Edit line 23 of cover-image-header.php as follows:

    Current:

    <h2 class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></h2>

    edited:

    <h2 class="user-name"><?php bp_core_get_username( bp_displayed_user_id() ); ?></h2>

    4. place your edited copy of cover-image-header.php in themes/your-child-theme/buddypress/members/single


    ovihasan
    Participant

    @ovihasan

    Thanks for Your Response. I try that but it’s not work. Here I attach the schreenshot. I mainly want that.
    Here Is the scrrenshot

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar