Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Enable SearchWP Live Search on any search form input manually
// if your form is generated using get_search_form() you do not need to do this
// as SearchWP Live Search does it automatically out of the box
<form action="" method="get">
<label for="s"><?php _e( 'Search' , 'mytextdomain' ); ?></label>
<input type="text" name="s" id="s" value="" data-swplive="true" /> <!-- data-swplive="true" enables SearchWP Live Search -->
<button type="submit"><?php _e( 'Search' , 'mytextdomain' ); ?></button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment