Skip to:
Content
Pages
Categories
Search
Top
Bottom

Name in profile


  • beat sk
    Participant

    @beatwell

    Hi,

    [RED] I have a question about profile name near the photo. How can I show the name (username) near the photo on the profile page, when the Activity Stream component is turned off? We dont want the Activity streams, but the we want the username on profile. It just looks just awfuf.

    [GREEN] how can I move the entire menu next to a photo?

    [PURPLE] Content of tabs still below the photo? But closer.

    Bez-n-zvu

    Thank you.

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

  • shanebp
    Moderator

    @shanebp

    You need to adjust the proper template.
    But don’t edit the templates in the plugin or your changes will be wiped out when you update BP.
    Instead, overload the template:

    Theme Compatibility & Template Files

    Re RED: you didn’t say which template pack you are using. I will assume it is Nouveau.
    Over load this template:
    wp-content\plugins\buddypress\bp-templates\bp-nouveau\buddypress\members\single\member-header.php
    Then open the overload template and find this code near the top:

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

    And simply remove the conditional, so it will look like this:

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

    Your other questions are more complex, but will require the same approach:

      – identify the template(s) you need to change
      – overload them
      – make your changes

    beat sk
    Participant

    @beatwell

    Hello,

    thank you but not working. When i create subfolders buddypress/members/single/ with member-header.php in my child theme then i get error.

    I just removed <?php if ( bp_is_active( ‘activity’ ) && bp_activity_do_mentions() ) : ?> and <?php endif; ?> but i get error. And We have a Legacy template pack no Nouveau.

    Thank you.


    beat sk
    Participant

    @beatwell

    OK solved with
    <h2 class=”user-nicename”><?php echo bp_core_get_user_displayname( bp_displayed_user_id() ); ?></h2>


    Robby Saputra
    Participant

    @linggomandiriteknik

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