Created
September 11, 2012 02:17
-
-
Save quangbahoa/3695453 to your computer and use it in GitHub Desktop.
Replace get_search_form
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
// Search Form | |
function vn_wpsearch($form) { | |
$form = '<form role="search" method="get" id="searchform" action="' . home_url( '/' ) . '" > | |
<label class="screen-reader-text" for="s">' . __('Search for:') . '</label> | |
<input type="text" value="' . get_search_query() . '" name="s" id="s" placeholder="'.esc_attr__('Search the Site...').'" /> | |
<input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" /> | |
</form>'; | |
return $form; | |
} | |
add_filter( 'get_search_form', 'vn_wpsearch' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment