Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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