twentyfifteen_widgets_init

Register widget area.

Description

twentyfifteen_widgets_init(); 

Usage

  1. if ( !function_exists( 'twentyfifteen_widgets_init' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyfifteen_widgets_init(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function twentyfifteen_widgets_init() { 
  2. register_sidebar( array( 
  3. 'name' => __( 'Widget Area', 'twentyfifteen' ),  
  4. 'id' => 'sidebar-1',  
  5. 'description' => __( 'Add widgets here to appear in your sidebar.', 'twentyfifteen' ),  
  6. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  7. 'after_widget' => '</aside>',  
  8. 'before_title' => '<h2 class="widget-title">',  
  9. 'after_title' => '</h2>',  
  10. ) );