Created
February 18, 2015 19:32
-
-
Save SiGaCode/f66d8a07663301f56f94 to your computer and use it in GitHub Desktop.
Functions: Create a widget area and wrap it in divs.
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
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