Skip to content

Instantly share code, notes, and snippets.

@topleague
Last active April 24, 2018 19:21
Show Gist options
  • Save topleague/9ca5bcf0b96b658c7cbd15441fe8976b to your computer and use it in GitHub Desktop.
Save topleague/9ca5bcf0b96b658c7cbd15441fe8976b to your computer and use it in GitHub Desktop.
Register Front Page Widgets in Business Theme
//* Register Widgets for Front Page
add_action( 'widgets_init', 'genesischild_front_page_widgets' );
function genesischild_front_page_widgets() {
genesis_register_sidebar( array(
'id' => 'featured-background-1',
'name' => __( 'Hero', 'genesischild' ),
'description' => __( 'This is the Hero area', 'genesischild' ),
) );
genesis_register_sidebar( array(
'id' => 'featured-background-2',
'name' => __( 'Pricing Table', 'genesischild' ),
'description' => __( 'This is the Pricing Table area', 'genesischild' ),
) );
genesis_register_sidebar( array(
'id' => 'featured-background-3',
'name' => __( 'Services Featured', 'genesischild' ),
'description' => __( 'This is the Services Featured area', 'genesischild' ),
) );
genesis_register_sidebar( array(
'id' => 'featured-background-4',
'name' => __( 'Blog Featured', 'genesischild' ),
'description' => __( 'This is the Blog Featured area', 'genesischild' ),
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment