saragreenlaw
12/8/2014 - 3:24 AM

Add a site wide widget geneisis

Add a site wide widget geneisis

/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'your-widget',
'name' => __( 'Your Widget', 'genesis' ),
'description' => __( 'This is the your widget descriptiom.', 'theme' ),
) );
 
/** Add the your widget section */
add_action( 'hook', 'your_widget' );
function your_widget() {
genesis_widget_area( 'your_widget', array(
'before' => '<div class="your-widget widget-area">',
'after' => '</div>',
) );