Created
January 28, 2013 15:32
-
-
Save anonymous/4656469 to your computer and use it in GitHub Desktop.
Search in Category in Genesis 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
function genesis_search_form() { | |
$form = ' | |
<form id="searchform" method="get" class="searchform" action="' . home_url() . '/" > | |
<input type="text" value="'. $search_text .'" name="s" id="s" size="15" class="s"'. $onfocus . $onblur .' /> | |
<?php wp_dropdown_categories('show_option_none=Select category'); ?> | |
<input type="submit" class="searchsubmit" value="Search" /> | |
</form> | |
'; | |
return apply_filters('genesis_search_form', $form, $search_text, $button_text); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment