cwp_megar_widgets_init

Register widgetized area and update sidebar with default widgets.

Description

cwp_megar_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function cwp_megar_widgets_init() { 
  2. register_sidebar( array( 
  3. 'name' => __( 'Sidebar', 'cwp-megar' ),  
  4. 'id' => 'sidebar-1',  
  5. 'before_widget' => '<aside id="%1$s" class="widget %2$s">',  
  6. 'after_widget' => '</aside>',  
  7. 'before_title' => '<h1 class="widget-title">',  
  8. 'after_title' => '</h1>',  
  9. ) );