Created
August 6, 2018 21:08
-
-
Save braddalton/7065c809be0b6821eb0cbd4f3b03d2af to your computer and use it in GitHub Desktop.
Add Widget To Genesis Child Theme https://wpsites.net/web-design/display-genesis-featured-page-widgets-in-columns-using-css-grid/
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' => '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