Last active
August 29, 2015 14:08
-
-
Save jdelia/ec656ebdb8cd0b3f140d to your computer and use it in GitHub Desktop.
Winning Agent Search Bar Widget on Homepage only
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
// Add search widget below header. | |
add_action( 'genesis_after_header', 'wap_search_bar' ); | |
function wap_search_bar() { | |
// only run if we are on the home page | |
if ( is_front_page() ) { | |
genesis_widget_area( 'search-bar', array( | |
'before'=> '<div class="search-bar"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment