Home › Forums › Legacy Support › Support queries › How-to & Troubleshooting › buddypress tab order
Tagged: buddypress, profile menu
- This topic has 3 replies, 2 voices, and was last updated 6 years, 2 months ago by Diana.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
September 10, 2018 at 3:21 pm #175715mikaylatjieSpectatorHi there, I would like to change the buddypress tab order and have tried a few things: <p style="margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #222222; font-family: 'Open Sans', sans-serif;">function my_change_profile_tab_order() { global $bp;</p> <p style="margin: 0px 0px 10px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; color: #222222; font-family: 'Open Sans', sans-serif;">$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 );</p> And also function wps_modify_tab_order() { // global $bp; // $bp->bp_nav['dashboard']['position'] = 0; // $bp->bp_nav['courses']['position'] = 20; // $bp->bp_nav['subject-library']['position'] = 60; // $bp->bp_nav['forums']['position'] = 70; // $bp->bp_nav['buddydrive']['position'] = 80; // $bp->bp_nav['mock-exams']['position'] = 30; // $bp->bp_nav['study-mode']['position'] = 40; // $bp->bp_nav['settings']['position'] = 90; // // } // add_action( 'bp_setup_nav', 'wps_modify_tab_order', 999 ); // But neither seems to make any difference. Am I missing something? Do you know what code works best to do this?September 11, 2018 at 9:34 am #175777DianaParticipant@mikaylatjie Let me know which tab order you wish to change so I can provide you a specific solutionSeptember 11, 2018 at 7:00 pm #175864mikaylatjieSpectatorHey! Here's a screenshot of the new order in red text: http://prntscr.com/kt98kx (subject library will be removed in future, hence it hasn't been listed) Thank you!September 12, 2018 at 9:18 am #175922DianaParticipantThis reply has been marked as private.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘buddypress tab order’ is closed to new replies.