-
Author
-
August 3, 2016 at 18:09 #131198fullworksmediaParticipant
hi there,
I’d like to rename and re-order some of the tabs on the buddypress profile page. Could you please tell me how to do it and which file needs editing? Please check image attached.
For example I’d like Groups to be after Profil but also ‘groups’ to be renamed to ‘Grupy’.
Many thanks,
Adam
Attachments:
You must be logged in to view attached files.August 3, 2016 at 18:25 #131205RaduModeratorHi
Add this function to child theme / wp-content/themes/kleo-child/functions.php
COPY CODEfunction rename_bp_tabs() { global $bp; $bp->bp_nav['notifications']['name'] = 'RE-Notifications'; $bp->bp_nav['messages']['name'] = 'RE-Messages'; $bp->bp_nav['groups']['name'] = 'RE-GRoups'; } add_action( 'bp_init', 'rename_bp_tabs');
Note Kleo Child theme needs to be installed and activated.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 3, 2016 at 18:30 #131206fullworksmediaParticipantThanks for your prompt reply, it worked!
Just one more thing.. do you know how to disable certain updates from the activity wall? For example when someone joins the group, uploads new profile picture or became registered member. I don’t really want these messages to show up on the activity wall.
Many thanks,
AdamAugust 3, 2016 at 19:26 #131232RaduModeratorYou’re welcome
You can remove all that kind of activities with this setting Go to wp-admin -> theme options -> buddypress -> settings -> UNCHECK this -> Site Tracking
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 3, 2016 at 21:00 #131255fullworksmediaParticipanthi Radu,
I’ve unchecked site tracking, but when I upload new avatar, on the site-wide-activity it still says ‘Adam changed their profile picture’. Any more ideas?Thanks,
AdamAugust 4, 2016 at 16:18 #131335RaduModeratorI’ve understand, we don’t have an option in theme for that but you can edit the php files, please take a look at this article : https://premium.wpmudev.org/blog/how-to-customize-the-buddypress-activity-loop/
Then in our theme the responsible file for that is /wp-content/themes/kleo/buddypress/activity/activity-loop.php but before do your changes copy the file to /wp-content/themes/kleo-child/buddypress/activity/
Around line 16 you will see this
COPY CODE<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
the according the article you will replace with
COPY CODE<?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ).'&object=groups,profile,status,blogs' ) ) : ?>
Or with your desired components
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAugust 4, 2016 at 16:19 #131336RaduModeratorIf you paste, the code form the forum do not keep the space < ?php to be like Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
The forum ‘Bugs & Issues’ is closed to new topics and replies.