Created
July 20, 2016 06:37
-
-
Save Ataurr/c2c8aff6f6ceed95ffca2588b043eb6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function accommodation_search_forms($form) { | |
| $form = ' | |
| <div class="search-widget search-form"> | |
| <form method="get" class="searchform" action="' . esc_url(home_url('/')) . '" id="search"> | |
| <div class="input-group"> | |
| <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span> | |
| <input type="text" name="s" class="form-control" placeholder="' . esc_attr__('Search...', 'accommodation') . '" value="' . get_search_query() . '"> | |
| </div> | |
| </form> | |
| </div>'; | |
| return $form; | |
| } | |
| add_filter('get_search_form', 'accommodation_search_forms', 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment