Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active December 17, 2015 06:59
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 braddalton/5569598 to your computer and use it in GitHub Desktop.
Save braddalton/5569598 to your computer and use it in GitHub Desktop.
genesis_register_sidebar( array(
'id' => 'after-post',
'name' => __( 'After Post Widget', 'wpsites' ),
'description' => __( 'Displays Content After All Single Posts.', 'wpsites' ),
) );
/**
* @author Brad Dalton - WP Sites
* @example http://wp.me/p1lTu0-9A7
*/
add_action( 'genesis_entry_footer', 'wpsites_after_post_widget', 5 );
function wpsites_after_post_widget() {
if ( is_single() ) {
genesis_widget_area( 'after-post', array(
'before' => '<div class="after-post" class="widget-area">',
'after' => '</div>',
) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment