Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created May 16, 2013 23:12
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/5595837 to your computer and use it in GitHub Desktop.
Save braddalton/5595837 to your computer and use it in GitHub Desktop.
/** Register After Post Content Widget**/
genesis_register_sidebar( array(
'id' => 'after-content',
'name' => __( 'After Content Widget', 'wpsites' ),
'description' => __( 'Displays After Content Sitewide', 'wpsites' ),
) );
/**
* @author Brad Dalton - WP Sites
* @link http://wp.me/p1lTu0-9A7
*/
/** Display Content After All Single Posts*/
add_action( 'genesis_after_post_content', 'wpsites_after_post_widget', 5 );
function wpsites_after_post_widget() {
echo '<div class="after-content">';
dynamic_sidebar( 'after-content' );
echo '</div><!-- end .after-content -->';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment