Place a footer banner above the footer widgets area in the genesis theme.
/*
* -------------------------------------------------------------------------
* Create the widget area to span the width of the site above the
* footer.
*/
$lpo_footer_banner = array(
'id' => 'footer-banner',
'name' => __( 'Footer Banner', 'Lake Park' ),
'description' => __( 'Footer Banner above widgets', 'Lake Park' ));
genesis_register_sidebar( $lpo_footer_banner );
/*
* Remove the existing genesis before footer hook because we are going
* to replace it with our own. Otherwise we'll end up with our banner
* below the footer widet area.
*
* We'll then call the footer widget hook after we summons our footer
* banner.
*/
remove_action( 'genesis_before_footer', 'genesis_footer_widget_areas' );
add_action( 'genesis_before_footer', 'lpo_do_footer_banner' );
/*
* Just do it.
*/
function lpo_do_footer_banner()
{
/*
* Draw the footer banner if we have placed any widgets.
*/
if ( is_active_sidebar( 'footer-banner' ) ) {
$do_widget = array (
'before' => "<div class='lpo-footer-banner'><div class='wrap'>",
'after' => "</div><!-- wrap --></div><!-- lpo-footer-banner -->",
);
genesis_widget_area( 'footer-banner', $do_widget );
}
/*
* Now draw the footer widgets
*/
genesis_footer_widget_areas();
}