Created
May 16, 2013 23:12
-
-
Save braddalton/5595837 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 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