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() { | |
genesis_widget_area( 'search-bar', array( | |
'before'=> '<div class="search-bar"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} |
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>', | |
) ); | |
} |
NewerOlder