Skip to content

Instantly share code, notes, and snippets.

@jayshreehcl
Created January 10, 2016 09:51
Show Gist options
  • Save jayshreehcl/4e101eb7e805863a12d6 to your computer and use it in GitHub Desktop.
Save jayshreehcl/4e101eb7e805863a12d6 to your computer and use it in GitHub Desktop.
This snippet is for adding custom widget area above header. http://wpvkp.com/add-custom-widget-above-header-in-genesis-theme/
add_action( 'genesis_before_header', 'wpvkp_bhw', 9 );
function wpvkp_bhw() {
genesis_widget_area( 'before-header', array(
'before' = '<div class="bh widget-area">',
'after' ='</div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment