Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@reasonstousegenesis
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reasonstousegenesis/e5553adc8149fa622ac2 to your computer and use it in GitHub Desktop.
Save reasonstousegenesis/e5553adc8149fa622ac2 to your computer and use it in GitHub Desktop.
Demonstration of the args for genesis_widget_area
<?php
// Paste the code BELOW this line into your child theme functions.
/**
* Demonstration of the args for genesis_widget_area
*
* @author Reasons to Use Genesis
* @link http://reasonstousegenesis.com/genesis-widget-area/
*/
add_action( 'genesis_after_header', 'rtug_do_widget_area_args' );
function rtug_do_widget_area_args() {
genesis_widget_area( 'rtug-widget-area', array(
'before' => '<section>',
'after' => '</section>',
'default' => '<p>No widgets here.</p>',
'show_inactive' => true,
'before_sidebar_hook' => 'rtug_before_widgets',
'after_sidebar_hook' => 'rtug_after_widgets'
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment