twentytwelve_widgets_init

Registers our main widget area and the front page widget areas.

Description

twentytwelve_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function twentytwelve_widgets_init() { 
  2. register_sidebar( array( 
  3. 'name' => __( 'Main Sidebar', 'twentytwelve' ),  
  4. 'id' => 'sidebar-1',  
  5. 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),  
  6. 'before_widget' => '<div class="side">',  
  7. 'after_widget' => '</div>',  
  8. 'before_title' => '<h3>',  
  9. 'after_title' => '</h3>',  
  10. ) );