-
Author
-
March 29, 2016 at 23:17 #113428CandromParticipant
Hey,
I did add several items to the user menu (located top right). I did modify the order of all items in functions.php file, but unfortunately the custom order is only working on buddypress pages! On all other pages the order is not as defined in functions.php, furthermore there is a whitespace appearing between items.
Please have a look!
March 30, 2016 at 18:23 #113596RaduModeratorHi,
Just go to wp-admin -> appearance -> menus -> add your desired items for user menu from the top right then assign this location to the menu Top Right Header Menu
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 30, 2016 at 19:16 #113634CandromParticipantBut how am I supposed to change the order of items that are added through plugins? such as rtmedia or mycred?
March 30, 2016 at 19:25 #113642RaduModeratorHi,
Follow this video : https://drive.google.com/file/d/0Bxo5b6iHWRMwSUQ3ZGIxQ21GWFE/view
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 30, 2016 at 19:35 #113646CandromParticipantI’m not sure if you understand what I mean.. or maybe it’s me that is not understanding something here..
ome menu items, like rtmedia “Media” menu-item, is not present on this page.
Theres also menu items that can be added through plugins like myCred. According to BuddyPress docs, you can change this order using the following code:COPY CODEfunction my_change_profile_tab_order() { global $bp; $bp->bp_nav['settings']['position'] = 10; $bp->bp_nav['activity']['position'] = 20; $bp->bp_nav['friends']['position'] = 30; $bp->bp_nav['groups']['position'] = 40; $bp->bp_nav['blogs']['position'] = 50; $bp->bp_nav['messages']['position'] = 60; $bp->bp_nav['profile']['position'] = 70; } add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );
This works fine, it does change the order in the user menu and tab menu, but only on buddypress pages! Other pages do show the default order and included blankspaces.
March 30, 2016 at 22:02 #113687CandromParticipantcorrection: on the code above, I had to use the action ‘init’ not ‘bp_setup_sav’ to make it work. But it still only works on buddypress pages not on all pages.
March 31, 2016 at 17:14 #113826RaduModeratorHi,
Please look at this video : https://drive.google.com/file/d/0Bxo5b6iHWRMwQkxrYUotV0Ziem8/view
Follow this method is more reliable and simple.
You will have to add this ##profile_link## in URL field and this will generate profile url for logged in user, then you will have to know only slug for the component.
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.