Thread Starter
mpiroh
(@mpiroh)
Dear Varun,
I don’t see how this is related to my issue. I’m not using member types plugin. After installing buddypress for sensei plugin I see double entries so I’m guessing something must be copied somewhere twice because these are entries from buddypres for sensei plugin. Re-installing plugin doesn’t work. Any suggestions?
Thank you,
Martin
Hi @mpiroh,
Try to deactivate other plugins and keep BuddyPress, Sensei, and BuddyPress for Sensei active only to replicate the issue.
Thread Starter
mpiroh
(@mpiroh)
Hi Varun,
I tried deactivating all the plugins but still it like:
ALL MEMBERS 45 MY FRIENDS 1 TEACHERS 3 STUDENTS 0 STUDENTS 0 TEACHERS 3 ORDER BY: LAST ACTIVE
This really doesn’t look nice and nowhere I can find a way how to deactivate double entries.
Hope you can assist,
Thanks,
M.
Thread Starter
mpiroh
(@mpiroh)
i don’t mind if they will be deactivated, but using below code in function.php file of my child theme doesn’t seem to have any effect.
function bp_sensei_remove_tabs() {
global $bp, $BUDDYPRESS_SENSEI;
remove_action( ‘bp_members_directory_member_types’, array( $BUDDYPRESS_SENSEI->bp_sensei_loader, ‘bp_sensei_members_directory’ ) );
}
add_action( ‘bp_init’, ‘bp_sensei_remove_tabs’);
Hi @mpiroh, Please let me know which theme you are using.
If we could get a copy of your theme, it might be easier to reproduce and understand what’s going on.
Thread Starter
mpiroh
(@mpiroh)
Dear Varun,
I’m using Kleo theme https://themeforest.net/item/kleo-pro-community-focused-multipurpose-buddypress-theme/6776630.
Thank you for your initiative, I really do appreciate you’re taking time to solve the issue
Martin
Hi @mpiroh
These code snippets remove the duplicate tabs from member directory on the latest Kleo theme. We have tested with Kleo theme as well.
function bp_sensei_remove_tabs() {
global $bp, $BUDDYPRESS_SENSEI;
remove_action( 'bp_members_directory_member_types', array( $BUDDYPRESS_SENSEI->bp_sensei_loader, 'bp_sensei_members_directory' ) );
}
add_action( 'bp_init', 'bp_sensei_remove_tabs');
Thread Starter
mpiroh
(@mpiroh)
Hi Varun,
Thank you again for your reply. Could you please clarify where this code needs to be added? I’m adding the code into function.php file in my Kleo child theme but it has no effect whatsoever. Should this be added somewhere else? Perhaps I’m doing something wrong …
Thank you,
Martin