hi @batufan,
bp-templates/bp-legacy/buddypress/groups/index.php:10
bp-templates/bp-legacy/buddypress/members/index.php:10
Functions are
bp_directory_groups_search_form
& bp_directory_members_search_form
Respectively in bp-groups/bp-groups-template.php & bp-members/bp-members-template.php
I think it’s in a core file somewhere, having looked into index.php (inside buddypress/templates/members/) now index-directory.php there’s no specific function call that I can see .
However you can build your own search form, just make sure you set the input name to be that of “s” and it should work. With AJAX you can look into buddypress.js to see how the devs have hooked up the form.
@batufan
Yeah @danbp knows what I don’t.
@marcella1981 🙂
if you want to remove the boxes, use (in bp-custom.php)
function bpfr_remove_search_forms( $search_form_html ){
return '';
}
add_filter( 'bp_directory_members_search_form', 'bpfr_remove_search_forms' );
add_filter( 'bp_directory_groups_search_form', 'bpfr_remove_search_forms' );