How to Remove Default Members Search Box

Home Forums BP Profile Search Forum How to Remove Default Members Search Box

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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
    Keymaster

    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!

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to Remove Default Members Search Box
Your information: