Last active
December 15, 2015 15:39
-
-
Save braddalton/5283769 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 | |
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