Doesn't Work if I Modify the Default search.php
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Doesn't Work if I Modify the Default search.php’ is closed to new replies.