Skip to content

Instantly share code, notes, and snippets.

@joshmoto
Created August 13, 2012 17:24
Show Gist options
  • Save joshmoto/3342604 to your computer and use it in GitHub Desktop.
Save joshmoto/3342604 to your computer and use it in GitHub Desktop.
Search not working...
// SEARCH FORM HEADER
function search_form_header( $form ) {
$form = '<form method="get" id="header-searchform" action="' . home_url( '/' ) . '" >
<div>
<div class="searchform-left"></div>
<input class="searchform-mid clearit" type="text" name="search" id="search-header" value="Search" />
<div class="searchform-right"></div>
</div>
</form>';
return $form;
}
add_filter( 'get_search_form', 'search_form_header' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment