Skip to content

Commit 979b913

Browse files
committed
show the search term in the search box on a results page
1 parent aade035 commit 979b913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="book-summary">
22
<div id="book-search-input" role="search">
33
<form method="get" action="<?php echo esc_url( home_url() ); ?>">
4-
<input type="text" name="s" placeholder="Type to search">
4+
<input type="text" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" placeholder="Type and press enter to search">
55
</form>
66
</div>
77
<nav role="navigation">

0 commit comments

Comments
 (0)