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
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.
OK solved with
<h2 class=”user-nicename”><?php echo bp_core_get_user_displayname( bp_displayed_user_id() ); ?></h2>