Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created January 17, 2020 04:53
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/1fbb50682a41011c47a21a6262705e1f to your computer and use it in GitHub Desktop.
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
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