Search Results for 'change buddypress menu'
-
AuthorSearch Results
-
March 17, 2018 at 11:56 am #271435
In reply to: BP profile navigation menu queue
Venutius
ModeratorJust search the forum for past suggestions, this thread for example explains how to change the menu ordering:
BP 2.6.1.1 – Object of class BP_Core_BP_Nav_BackCompat could not be converted to string error
February 9, 2018 at 10:34 am #270703In reply to: Why is Members page not part of the BuddyPress menu?
Henry Wright
ModeratorI wonder why Members page is not part of the BuddyPress menu?
Good question! This is something you can change at the theme level. Nearly all areas of BuddyPress can be customised. If you need help feel free to post questions and open new topics.
January 30, 2018 at 5:17 pm #270450In reply to: Fixing deprecated bp_nav code?
David Cavins
KeymasterTo change items, see the link I referenced: https://codex.buddypress.org/developer/navigation-api/#change-item-names-of-users-and-groups-nav-menus
January 14, 2018 at 8:08 am #270087In reply to: Remove Profile Nav Items
Varun Dubey
ParticipantHi @shayne-thiessen
You can use code suggest in following thread.January 10, 2018 at 9:36 pm #270047Topic: Change menu items below user header
in forum How-to & Troubleshootingbrunothomas
ParticipantHello guys,
I’m new to wordpress themes customization so I’d like some help with a few questions.
I’ve been running a buddypress community for some months now but I couldn’t find out these things:
1) How do I remove items from the menu bar that’s below the user profile header? I tried via the usual Menu customization option in WP dashboard but couldn’t find it.
2) How do I add a link to a custom page to that same menu and make it open within the same template, that is, showing the header and menu bar on the top of the content I created?
Reference: https://i.imgur.com/IR5Ptbq.png
Thanks!
Bruno
January 8, 2018 at 8:01 pm #270022nicecap
ParticipantWow – thank you leo – you came up with the right track. When I add Activity from the BuddyPress items to my menu it will be the “…/members/username/activity” version and when I add Activity from the pages items it will be “…/activity”, so I changed that.
But it’s true then the header is missing. I will fix this.
Thank you very much for your effort helping me!
January 6, 2018 at 5:24 pm #269956In reply to: i want to edit buttons.
leog371
Participant/* Example to Change item names of user’s and group’s nav menus ... Profile Menu https://codex.buddypress.org/developer/navigation-api/#examples */ function bpcodex_rename_profile_tabs() { buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Forums', 'textdomain' ) ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'name' => __( 'MY Groups', 'textdomain' ) ), 'groups' ); } add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );/* Example to Rename Group Menus https://codex.buddypress.org/developer/navigation-api/#examples*/ function bpcodex_rename_group_tabs() { if ( ! bp_is_group() ) { return; } buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Discussion', 'buddypress' ) ), 'forum', bp_current_item() ); buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Members', 'buddypress' ) ), 'members', bp_current_item() ); buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Activity', 'buddypress' ) ), 'home', bp_current_item() ); } add_action( 'bp_actions', 'bpcodex_rename_group_tabs' );/* Example to Remove subnav tabs from Group Settings https://codex.buddypress.org/developer/navigation-api/#examples*/ function bpcodex_remove_group_manager_subnav_tabs() { // site admin will see all tabs if ( ! bp_is_group() || ! ( bp_is_current_action( 'admin' ) && bp_action_variable( 0 ) ) || is_super_admin() ) { return; } // all subnav items are listed here. // comment those you want to show $hide_tabs = array( // 'group-settings' => 1, // 'delete-group' => 1, // 'group-avatar' => 1, // 'group-invites' => 1, // 'manage-members' => 1, // 'forum' => 1, // 'group-cover-image' => 1 ); $parent_nav_slug = bp_get_current_group_slug() . '_manage'; //Remove the nav items foreach ( array_keys( $hide_tabs ) as $tab ) { bp_core_remove_subnav_item( $parent_nav_slug, $tab, 'groups' ); } } add_action( 'bp_actions', 'bpcodex_remove_group_manager_subnav_tabs' );December 11, 2017 at 1:52 pm #269508In reply to: Buddypress profile on existing navbar
peter-hamilton
ParticipantI think you need a child-theme and change the header.php to include your custom navigation, I have created a similar menu but did require a lot of work in the header.

When new messages the number of messages shows in the message-icon, links to profile page, also woocommerce integrated and a dashboard link for admin only.
The following is in my custom header.php
First code links to profile.
<li><a href="<?php echo bp_loggedin_user_domain(); ?>" class="activitylink" title="My Account"><span class="dashicons dashicons-admin-users"></span></a></li>This code deals with messages.
<li><a href="<?php global $current_user; echo home_url() . '/members/' . $current_user->user_login . '/messages/'; ?>"><span class="dashicons dashicons-admin-comments"></span><span class="commentcount"><?php if (bp_get_total_unread_messages_count( bp_loggedin_user_id() ) > 0 ) { ?> <?php bp_total_unread_messages_count( bp_loggedin_user_id() ) ?><?php } ?></span></a> </li>Since I did not want too much in my nav I only used these buddypress features, more would clog up my website too much.
But where it comes down to is with a child-theme you can make it exactly as you like.
Good luck
P.H.August 25, 2017 at 1:20 pm #267708In reply to: How to hide / remove the General tab under Settings
lenasterg
ParticipantHi. I made a minor change in the code @danbp suggests (basically the $args[‘subnav_slug’] and now I believe it works as expected.
So I guess it’s not a BuddyPress bug.Please, try the following
function bpex_change_profile_settings_default_tab() { if( bp_is_active( 'xprofile' ) ) : $access = bp_core_can_edit_settings(); $slug = bp_get_settings_slug(); $args = array( 'parent_slug' => $slug, 'subnav_slug' => 'notifications', 'screen_function' => 'bp_settings_screen_notification', 'user_has_access' => $access ); bp_core_new_nav_default( $args ); endif; } add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' ); function bpex_remove_general_item_on_usermenu() { global $wp_admin_bar; if ( bp_use_wp_admin_bar() ) { $wp_admin_bar->remove_node( 'my-account-settings-general' ); } } add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' ); function bpex_remove_profile_settings_general_tab() { if( bp_is_active( 'xprofile' ) ) : bp_core_remove_subnav_item( 'settings', 'general' ); endif; } add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );May 30, 2017 at 10:49 pm #266206shirleyddsn
ParticipantSide Note:
I dont know if I can/should ask this here, or if it should be a different post, but I’m trying to make changes to the buddypress templates in my child theme, and it seems that I’m not allowed (?!) to make changes to the actual templates?For example, I was trying to make changes to cover-image-header.php just to see if I can. I wanted to add “Last Active:” just before the function that lists when the member was last active. Just to see if I could. When I refreshed the page, I thought I saw for a brief second that it did in fact say “Last Active:”, before it disappeared and just showed the original content again. To make sure it was actually my code and not a glitch, I repeated the process but replaced LAST ACTIVE with PIZZA HUT. Just to make sure it was actually me. Refresh -> Pizza Hut flashed. Yup, it was me. But why wont the code stick? Could it be my child theme document tree isn’t right? Or do I need to add some code somewhere so that changes in my child folder override files in the original buddypress folders?
When I copied my files over, I group selected the folders in
plugins/buddypress/bp-templates/bp-legacy/buddypressand copied them all over tothemes/my-theme/buddypress. Am I missing a folder or something?Also: I figured out the concept behind
add_actiontacking on instructions to ado_actionfunction. But where do theDO_ACTIONfunctions live? And am I able to modify those? I would like to add some font-awesome icons to the front of my profile menu links the way we have here, but I can’t find the code that spits out the information.April 4, 2017 at 12:35 am #265211In reply to: Adding a full buddypress page to a new page
r-a-y
Keymaster> Can i call a complete bubbypress page on to a new page ?
Short answer is no.
You can however, change the slug of a BuddyPress page via the WP admin’s “Pages” menu. If you can change the location of the slug, this should satisfy most use-cases.
> with php maybe? or create a shortcode?
Yes, anything is possible with code! It depends what you want to show though.
There are some plugins out there that show BP content via shortcodes. One of them is this one:
February 22, 2017 at 3:48 pm #264050In reply to: Can’t upload profile pictures
danbp
ParticipantWhen you are on frontend, your profile tab, you should see follwing menu items under the buddy nav bar:
View | Edit | Change Profile Photo | Change Cover Image
and the same items under your user menu (below Howdy), in the top right corner on the Toolbar, as submenu of the Profile item.
If it isn’t case, some common issues can be:
– you omitted to save your BP options
– you use a cache and see the site content from before BP installation
– there is a weird bug in a file
– your theme isn’t taylored for BuddyPress
– there is a conflict with another pluginWhat you could try:
– double check your settings
– clear the cache
– reload a fresh copy of BP via FTP
– test with a Twenty theme
– you have to debugNote also that you can only load ONE avatar or ONE cover image at a time and that you have definitely only one picture for each bundled with your account.
January 20, 2017 at 5:21 am #263033In reply to: profile image not changing on mobile/ipad
bcanr2d2
ParticipantMy experience on an iPad with BuddyPress and the change profile photo is as follows:
Safari (custom theme) – same as above, hard to find the right spot to get the iOS menu to appear
Chrome (custome theme) – worked perfectly, the touch zone matched the physically drawn button on screen.
Safari (Twenty theme) – different site, but worked without an issue straight away.There is something with some of the themes (I am using one from Template Monster that has this issue, and another from them does not have an issue at all.
About to see if they can provide a fix for this. It seems odd it’s only a Safari issue, and only on some themes.January 16, 2017 at 9:32 am #262841In reply to: How do I change the BuddyPress menu
danbp
ParticipantPlease, search the forum before asking common question!
https://buddypress.org/support/search/change+buddypress+menu/
January 2, 2017 at 1:19 pm #262496In reply to: I want my users to be able to create posts and pages
danbp
ParticipantIf you consider all your users to have the same ability to publish, you can simply setup WP’s default role from subscriber to author. You don’t need a plugin to do that. To allow categories, search on WP codex, as this has nothing to do with the fact you use BuddyPress.
For customizing the Howdy menu item, use this custom snipet or take one of the existing plugin to do that.
December 6, 2016 at 10:04 am #261790danbp
ParticipantIs “xprofile component” the feature exposed in “Settings > BuddyPress” named “Extended Profiles” (at the very top of the config page)? (It probably is, but I just want to be sure, thanks.)
Yes it is !
it is possible […] to effect the change of either the email or password fields?
Yes it is ! from here: your-site.abc/members/USERNAME/settings/ – the link can be found under the top right usermenu on wp’s toolbar: username > settings > general OR/AND on the buddymenu, when you’re on your profile: Settings ! And that’s it !

For all other BP related questions, please read through the codex, i really have no time to (re)write all explanations. Sorry, hope you uderstand.
November 16, 2016 at 10:30 pm #261098In reply to: First time Buddy Press User and Look Bad on Mobile
Venutius
ModeratorTrying to get a theme to support BP can be a bit of a challenge, if it were me I’d start with adding the register and login links in the menu then hide them for logged in users to keep it tidy, you can do that using WPFront User Role Editor. I run a few sites with theme’s that don’t support BP, it is possible but often you find yourself having to make css changes in order to display parts of the site correctly.
I’ve set up a site, which is about setting up BuddyPress, you might want to take a look, it might give you some ideas. http://buddyuser.com
November 10, 2016 at 6:14 am #260892Topic: help with default activity stream tab
in forum How-to & TroubleshootingMasoud
Participanthi.
i am using latest versions of both wordpress and buddypress.and working on a food website.
in this website , i wanted to allow only authors to post activity updates .
(because it will be much easier for users to track their favorite chef recipes in the activity page.)
so i’ve hide the ” personal ” submenu of activity tab : Activity > Personal (where people can post updates)
with the help of following code in bp-custom.php :function bpfr_hide_tabs() { global $bp; if ( bp_is_user() && ( !current_user_can(author) || !current_user_can(administrator) ) ) { bp_core_remove_subnav_item($bp->activity->slug, 'just-me'); } } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );but now when i go to my profile (as a subscriber)
i will see a 404 page.
i’ve searched a lot and i noticed that , now that i’ve removed the default activity stream tab , i have to point it to another tab. so when a user profile is loading (or if a user clicks on activity tab),
instead of default activity> personal . it load activity > mentions / OR / favorites / OR / … (some other submenu than personal )so my question is:
how can i change the default activity stream tab
from
Activity > Personal
To
Activity > Mentions – Or to – Activity > Favorites – …thanks a lot for any help.
October 28, 2016 at 1:47 pm #260499In reply to: menu link member list
reivilob
ParticipantHi
it does not change the problem. (both WP menu or BP menu is interesting)
In my case at a WP menu
In the WP menu admin you have a Buddypress section where you can select a lot of BP feature for login or logout users, but the Member list is not available here…If there is a way to do it by functions.php it is ok for me but not clear how to do it and by example define the position in the menu …
Best regards
OlivierSeptember 27, 2016 at 7:33 am #259141In reply to: buddypress user settings problem
danbp
Participantguess you made some mistake while activating BuddyPress and using your theme. Probably you have also some other plugins in use ?
So, aside from reading absolutely throuhg the install BP documentation, i strongly recommand that you check the site fonctionnalities by using only:
WP+BP+Twenty Sixteen theme. No other plugin, no custom code.
If you allowed registration, you have a login widget (the one coming with WP) you can activate in the sidebar. Do this for testing the password change (click on lost password ?) once active.
Also on the basic install, you should have all BP menus in the usermenu (top right corner) and on a user profile.
Once anything ok on this install, upload BP Default Data plugin and activate it. This will add fake datas in all parts of BP, so you have content everywhere that let you test completely the site.
Go through and see how it works.
If all seems ok, you can then activate the final theme. Simply remind that BP pages should be empty, without any content or template model.
Don’t forget to set up pretty permalinks (whatever but by default) and with a little luck, you’ll be on the right path.September 6, 2016 at 6:10 pm #258461In reply to: identify code
danbp
ParticipantYour link is 7 years old ! That’s a prehistoric reference 🙂 and outdated!
If you’re talking about the Notification(x) item on BuddyMenu, it is in the language file where you can change it or use the trick indicated on Nav Api codex page (mentionned in the above post).Example:
function bpcodex_change_unread_nav_name() { buddypress()->members->nav->edit_nav( array( 'name' => 'The new name in whatever language', ), 'notifications' ); } add_action( 'bp_setup_nav', 'bpcodex_change_unread_nav_name', 100 );Add the snippet to bp-custom.php
September 5, 2016 at 5:03 pm #258411In reply to: identify code
idichoo
ParticipantHi,
well… it sound complicated to me as i am still quite confuse.
Anyway, i need to identify because i wish to change notification word in buddypress menu bar to chinese by hard coding or whatever.
Can you advise what to enter into the css or where to change it.
July 10, 2016 at 10:27 pm #256451In reply to: How to hide profile menu items from other users
danbp
Participant@socialc, since 2.6 and the new Nav API, there is a much simplier possibility as the translation file to change nav item names.
@marcono, try this; not sure you learned, below snippet is on Nav API examples i indicated previously. 😉function bpcodex_rename_group_tabs() { if ( ! bp_is_group() ) { return; } buddypress()->groups->nav->edit_nav( array( 'name' => __( 'Group Discussion', 'buddypress' ) ), 'forum', bp_current_item() ); } add_action( 'bp_actions', 'bpcodex_rename_group_tabs' ); function bpcodex_rename_profile_tabs() { buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Buddy Forums', 'textdomain' ) ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'name' => __( 'My Buddy Groups', 'textdomain' ) ), 'groups' ); } add_action( 'bp_actions', 'bpcodex_rename_profile_tabs' );July 5, 2016 at 7:54 pm #255990danbp
ParticipantMerci @imath !
The old way
The following syntax to change the tab order is deprecated since 2.6 and will throw an error notice:
function rt_change_profile_tab_order() { global $bp; $bp->bp_nav['profile']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; } add_action( 'bp_setup_nav', 'rt_change_profile_tab_order', 999 );The new way
Now the correct syntax to use for modifying – since 2.6 – the tabs position on the buddybar when you’re on a profile.
This example list all BP related items who appear by default on a profile nav, in order of appearance and include also the forum tab (if you use bbPress for group forums).
By default, activity tab comes as 1st. The snippet will move it to 4th position.To modify a position you simply change the numeric value.
If you want to move only one item, you remove or comment (add//at begin of the line) the ones you don’t want to move.function bpex_primary_nav_tabs_position() { buddypress()->members->nav->edit_nav( array( 'position' => 4, ), 'activity' ); buddypress()->members->nav->edit_nav( array( 'position' => 5, ), 'profile' ); buddypress()->members->nav->edit_nav( array( 'position' => 7, ), 'notifications' ); buddypress()->members->nav->edit_nav( array( 'position' => 9, ), 'messages' ); buddypress()->members->nav->edit_nav( array( 'position' => 2, ), 'friends' ); buddypress()->members->nav->edit_nav( array( 'position' => 6, ), 'groups' ); buddypress()->members->nav->edit_nav( array( 'position' => 3, ), 'forums' ); buddypress()->members->nav->edit_nav( array( 'position' => 1, ), 'settings' ); } add_action( 'bp_setup_nav', 'bpex_primary_nav_tabs_position', 999 );That’s it for the buddybar nav menu order on profile.
June 26, 2016 at 1:27 pm #255255In reply to: l can not change the link extension
danbp
ParticipantNav items names can be changed via the language file.
Which language do you use on your site ?
Which language is used with BuddyPress ? (if turkish, get in touch with one of the editors here and ask for update)
Is your theme fully translated to that language ?To move the User Menu sub-menu, read here.
Check also your theme support forum, perhaps you’ll find some related topics to this WP core menu.
-
AuthorSearch Results
