How to Remove Default Members Search Box

BP Profile Search How to Remove Default Members Search Box

  • Author
    Post
  • #7636 Reply
    Rob
    Guest

    I’ve added the BP Profile Search, but now I have two each boxes on the Members page.

    How can I remove the default one?

    Cheers,
    Rob

    #7637 Reply
    andrea
    Plugin Author

    Hello Rob,

    The default Members search box is in the BuddyPress template file:

    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/index.php

    To remove it, open that file and delete the following three lines:

    <div id="members-dir-search" class="dir-search" role="search">
    	<?php bp_directory_members_search_form(); ?>
    </div><!-- #members-dir-search -->
    #7638 Reply
    Rob
    Guest

    Perfect.

    Cheers!

Reply to: How to Remove Default Members Search Box
My Information