Created
July 9, 2013 00:25
-
-
Save robincornett/5953663 to your computer and use it in GitHub Desktop.
hook the Genesis search form anywhere (here, above the sidebar--necessary as secondary nav was also hooked above sidebar so needed this to place search above secondary nav). Genesis 2.0
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
<?php | |
//* Insert a Genesis search form above the primary sidebar widget area (in lieu of using a widget due to secondary nav or other bing placed above the sidebar) */ | |
add_action( 'genesis_before_sidebar_widget_area', 'rgc_do_search' ); | |
function rgc_do_search() { | |
echo '<aside class="widget">'; | |
get_search_form(); | |
echo '</aside>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment