twentythirteen_widgets_init

Register two widget areas.

Description

twentythirteen_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function twentythirteen_widgets_init() { 
  2. register_sidebar( array( 
  3. 'name' => __( 'Main Widget Area', 'twentythirteen' ),  
  4. 'id' => 'sidebar-1',  
  5. 'description' => __( 'Appears in the footer section of the site.', 'twentythirteen' ),  
  6. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  7. 'after_widget' => '</aside>',  
  8. 'before_title' => '<h3 class="widget-title">',  
  9. 'after_title' => '</h3>',  
  10. ) ); 
  11.  
  12. register_sidebar( array( 
  13. 'name' => __( 'Secondary Widget Area', 'twentythirteen' ),  
  14. 'id' => 'sidebar-2',  
  15. 'description' => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ),  
  16. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  17. 'after_widget' => '</aside>',  
  18. 'before_title' => '<h3 class="widget-title">',  
  19. 'after_title' => '</h3>',  
  20. ) );