Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use search text field type in the search form.
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php $labelText = __('Search this site', 'tarski'); ?> | ||
<div class="searchbox"> | ||
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"><fieldset> | ||
<label for="s" id="searchlabel"><?php echo $labelText ?></label> | ||
<input type="text" placeholder="<?php echo $labelText ?>" value="<?php the_search_query(); ?>" name="s" id="s"> | ||
<input type="submit" id="searchsubmit" value="<?php _e('Search','tarski'); ?>"> | ||
</fieldset></form> | ||
<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"><fieldset> | ||
<label for="s" id="searchlabel"><?php echo $labelText ?></label> | ||
<input type="search" results="5" placeholder="<?php echo $labelText ?>" value="<?php the_search_query(); ?>" name="s" id="s"> | ||
<input type="submit" id="searchsubmit" value="<?php _e('Search','tarski'); ?>"> | ||
</fieldset></form> | ||
</div> |