Skip to content

Instantly share code, notes, and snippets.

@SiGaCode
Created February 18, 2015 19:32
Show Gist options
  • Save SiGaCode/f66d8a07663301f56f94 to your computer and use it in GitHub Desktop.
Save SiGaCode/f66d8a07663301f56f94 to your computer and use it in GitHub Desktop.
Functions: Create a widget area and wrap it in divs.
genesis_register_sidebar( array(
'id' => 'widget-drawer',
'name' => __( 'Big Menu', 'dynamik-gen' ),
'description' => __( 'This is the widget area for the big menu.', 'dynamik-gen' ),
) );
//* Hook the widget-drawer-area to after_header
add_action( 'genesis_after_header', 'dynamik_big_menu', 10 );
function dynamik_big_menu() {
genesis_widget_area( 'widget-drawer', array(
'before' => '<div class="widget-drawer"><div class="widget-drawer-wrap dynamik-widget-area">',
'after' => '</div></div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment