Search Filter
Displays a search box + submit button.
Shortcode:
[search_filter]
Attributes:
Code Example:
[search_filter id="event_search" button_text="Find" show_label="false"]
Output:
<form method="get" action="">
<label class="visually-hidden" for="event_search">Search</label>
<div class="input-group">
<input class="form-control" id="event_search" name="search" type="text" value="">
<div class="input-group-btn">
<button class="btn btn-primary" id="search_btn" type="submit">Find</button>
</div>
</div>
</form>
Note:
The form reloads the current page with ?search= and the entered text added to the URL, and the box is pre-filled with that search on the next load. For example, after searching "festival", the box shows value="festival".