Last active
August 29, 2015 14:20
-
-
Save reasonstousegenesis/e5553adc8149fa622ac2 to your computer and use it in GitHub Desktop.
Demonstration of the args for genesis_widget_area
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
<?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