Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
genesis_register_sidebar( array(
'id' => 'css-grid-widget',
'name' => __( 'Grid Widget', 'genesis' ),
) );
add_action( 'genesis_before_content_sidebar_wrap', 'front_page_grid_widget' );
function front_page_grid_widget() {
genesis_widget_area( 'css-grid-widget', array(
'before' => '<div class="grid-container">',
'after' => '</div>',
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment