Created
January 17, 2020 04:53
-
-
Save braddalton/1fbb50682a41011c47a21a6262705e1f to your computer and use it in GitHub Desktop.
Horizontally Display Genesis Featured Posts Inline In One Widget Area https://wp.me/p1lTu0-fmq
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
genesis_register_sidebar( array( | |
'id' => 'home-top', | |
'name' => __( 'Home - Top', 'education' ), | |
'description' => __( 'This is the top section of the Home page.', 'education' ), | |
) ); | |
add_action( 'genesis_after_header', 'education_home_top_widget' ); | |
function education_home_top_widget() { | |
if ( is_active_sidebar( 'home-top' ) ) { | |
genesis_widget_area( 'home-top', array( | |
'before' => '<div class="home-top widget-area"><div class="wrap">', | |
'after' => '</div></div>', | |
) ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment