-
Author
-
June 21, 2018 at 21:35 #201480vladislavParticipant
I want to remove (not hide!!!) the ”@name” that appears above the main profile picture in members profiles. It appears like this when inspecting the element in the browser
<span class="user-nicename">@sandra</span>
. How can I remove the @name from all profiles? Thank you.I tried to use the solution I found in internet (added special code to the bp-custom.php file), but it did not work. So it may be the theme’s problem. The code I talked about I show you below:
/* remove @username from the profile header */
function bpfr_remove_mention_from_profile() {
echo ‘<style> h2.user-nicename { display:none; } </style>’; // hide the h2 containing the @
if( bp_is_user() && ! bp_get_member_user_id() ) { // be sure we get the right user_id
$user_id = ‘displayed: ‘. bp_displayed_user_id();
} else {
$user_id = ‘get_member_user: ‘. bp_get_member_user_id();
}
remove_filter( ‘bp_get_displayed_user_mentionname’, bp_activity_get_user_mentionname( bp_displayed_user_id() ) );
}
add_filter( ‘bp_get_displayed_user_mentionname’, ‘bpfr_remove_mention_from_profile’ );
June 22, 2018 at 03:22 #201519LauraModeratorHello, just disable the mention feature at Settings – Buddypress 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
June 22, 2018 at 08:12 #201529vladislavParticipantYour answer is not clear or wrong. I could not disable the mention feature at Settings – Buddypress, because there is no one. In any case, I do not see it. If there is exist – give me the name of it and screenshot. And once again – I want to remove (not hide!!!) the ”@name” that appears above the main profile picture in members profiles. I want to remove only this one thing, not the bundle of things.
June 23, 2018 at 02:33 #201603LauraModeratorHello, then we need to change it at the template, I can do this for you if you share ftp access 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
June 23, 2018 at 20:06 #201691Kieran_SQModeratorHi,
To confirm your above reply is marked as private and only you and SeventhQueen support staff can see the content.
I have copied cover-image-header.php from the SweetDate parent theme
/wp-content/themes/sweetdate/buddypress/members/single/cover-image-header.php
To the SweetDate Child theme
/wp-content/themes/sweetdate-child/buddypress/members/single/cover-image-header.php
I removed line 48 for you that had the below code which generated the @username text on the individual profile (see screenshots)
<span class="user-nicename">@<?php bp_displayed_user_username(); ?></span>
With regards to changing the BuddyPress profile URL this may be problematic and cause performance issues given how BuddyPress activity data is stored. If you wanted to achieve this custom development then this post would be a good starting point https://bbpress.org/forums/topic/user-profile-url-uses-the-username-can-that-be-changed/.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
Attachments:
You must be logged in to view attached files.June 23, 2018 at 22:02 #201728Kieran_SQModeratorHi,
Happy to help 🙂 Do you consider this ticket resolved?
All the best,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
June 23, 2018 at 22:15 #201734Kieran_SQModeratorGreat, I’ll mark it as resolved.
Feel free to open a new ticket any time and I’ll be happy to assist.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
You must be logged in to reply to this topic.