Skip to content

Instantly share code, notes, and snippets.

@braddalton
Last active December 15, 2015 15:39
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/5283769 to your computer and use it in GitHub Desktop.
Save braddalton/5283769 to your computer and use it in GitHub Desktop.
// Register Widget
genesis_register_sidebar( array(
'id' => 'featured-bottom',
'name' => __( 'After Content Home ', 'focus' ),
'description' => __( 'This is the after content home page widget.', 'focus' ),
) );
// Hook Widget After Content Home Page Only
add_action( 'genesis_after_content_sidebar_wrap', 'wpsites_after_content_home', 9 );
function wpsites_after_content_home() {
if ( is_home() && is_active_sidebar( 'featured-bottom' ) ) {
echo '<div class="featured-bottom"><div class="wrap">';
dynamic_sidebar( 'featured-bottom' );
echo '</div></div>';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment