Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jimmyk69
Created May 2, 2018 01:50
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 jimmyk69/bedebe25809cf08e68117d07769cbcc7 to your computer and use it in GitHub Desktop.
Save jimmyk69/bedebe25809cf08e68117d07769cbcc7 to your computer and use it in GitHub Desktop.
function twentyseventeen_widgets_init() {
register_sidebar( array(
'name' => __( 'Main Sidebar', 'twentyseventeen' ),
'id' => 'sidebar-1',
'description' => __( 'The main sidebar appears on the right on each page except the front page template', 'twentyseventeen' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' =>__( 'Front page sidebar', 'twentyseventeen'),
'id' => 'sidebar-2',
'description' => __( 'Appears on the static front page template', 'twentyseventeen' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
}
add_action( 'widgets_init', 'twentyseventeen_widgets_init' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment