• This plugin works great except for one issue. The standard WP search form is as follows:

    <form role="search" method="get" id="searchform" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
    	<div>
    		<label class="screen-reader-text" for="s"><?php _x( 'Search for:', 'label' ); ?></label>
    		<input type="text" value="<?php echo get_search_query(); ?>" name="s" id="s" />
    		<input type="submit" id="searchsubmit" value="<?php echo esc_attr_x( 'Search', 'submit button' ); ?>" />
    	</div>
    </form>

    But I need to edit the action from home URL to include the “members” URL parameter. But anytime I change the search form’s action AT ALL the dropdown suggester stops working. I cannot add any parameter to the URL without it disabling the dropdown suggester.

    How can I redirect to the correct url (or edit the default form at all) while still keeping the dropdown suggester active?

    Thanks.

    https://www.ads-software.com/plugins/buddypress-global-search/

Viewing 1 replies (of 1 total)
  • Plugin Author BuddyBoss

    (@buddyboss)

    @sjs719

    This is fixed in latest update. Since you had changed the search form name/Id(not sure exactly what), our Javascript couldn’t locate the search form. We had many search form selectors in JS:

    form[role=search], form.search-form, form.searchform, form#adminbarsearch

    We have added form[role=search] selector into the latest update (1.1.4).

    Search form suggestions will only work if they have any one of the above selectors matching.

Viewing 1 replies (of 1 total)
  • The topic ‘Doesn't Work if I Modify the Default search.php’ is closed to new replies.