Last active
December 26, 2015 02:39
-
-
Save braddalton/8de4b81ea82f71c7d617 to your computer and use it in GitHub Desktop.
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
//* Register widget areas | |
genesis_register_sidebar( array( | |
'id' => 'after-pages', | |
'name' => __( 'After Pages Widget', '$text_domain' ), | |
'description' => __( 'Add Content After Pages', '$text_domain' ), | |
) ); | |
add_action( 'genesis_entry_footer', 'wpsites_after_pages_widget' ); | |
function wpsites_after_pages_widget() { | |
if ( is_page() && is_active_sidebar('after-pages') ) { | |
genesis_widget_area( 'after-pages', array( | |
'before' => '<div class="after-pages" class="widget-area">', | |
'after' => '</div>', | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment