Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members page: Hide defaut search field


  • johanna75
    Participant

    @johanna75

    Hi all,
    need to force members to search by advanced search on the fields I have set.
    Because the default BP search field search everywhere, even in private datas!

    Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)

  • johanna75
    Participant

    @johanna75

    Does someone have an idea to hide the default search field?


    shanebp
    Moderator

    @shanebp

    You can remove it by creating a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\index.php

    Remove this code:

    	<?php /* Backward compatibility for inline search form. Use template part instead. */ ?>
    	<?php if ( has_filter( 'bp_directory_members_search_form' ) ) : ?>
    
    		<div id="members-dir-search" class="dir-search" role="search">
    			<?php bp_directory_members_search_form(); ?>
    		</div><!-- #members-dir-search -->
    
    	<?php else: ?>
    
    		<?php bp_get_template_part( 'common/search/dir-search-form' ); ?>
    
    	<?php endif; ?>

    johanna75
    Participant

    @johanna75

    Shanebp… it’s perfect!
    Exactly what i needed.
    Very thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Skip to toolbar