<?php   
add_action( 'widgets_init', 'spicepress_widgets_init');
function spicepress_widgets_init() {
    
    /*sidebar*/
    
    register_sidebar( array(
        'name' => esc_html__('Sidebar widget area','spicepress'),
        'id' => 'sidebar-1',
        'description' => esc_html__('Sidebar widget area','spicepress'),
        'before_widget' => '<aside id="%1$s" class="widget %2$s wow fadeInDown animated" data-wow-delay="0.4s">',
        'after_widget' => '</aside>',
        'before_title' => '<div class="section-header wow fadeInDown animated" data-wow-delay="0.4s"><h3 class="widget-title">',
        'after_title' => '</h3></div>',
    ) );
        
    register_sidebar( array(
        'name' => esc_html__( 'Footer widget left area', 'spicepress' ),
        'id' => 'footer_widget_area_left',
        'description' => esc_html__( 'Footer widget left area', 'spicepress' ),
        'before_widget' => '<aside id="%1$s" class="widget %2$s wow fadeInDown animated" data-wow-delay="0.4s">',
        'after_widget' => '</aside>',
        'before_title' => '<div class="section-header"><h3 class="widget-title">',
        'after_title' => '</h3><span></span></div>',
    ) );
    
    register_sidebar( array(
        'name' => esc_html__( 'Footer widget central area', 'spicepress' ),
        'id' => 'footer_widget_area_center',
        'description' => esc_html__( 'Footer widget central area', 'spicepress' ),
        'before_widget' => '<aside id="%1$s" class="widget %2$s wow fadeInDown animated" data-wow-delay="0.4s">',
        'after_widget' => '</aside>',
        'before_title' => '<div class="section-header"><h3 class="widget-title">',
        'after_title' => '</h3><span></span></div>',
    ) );
    
    register_sidebar( array(
        'name' => esc_html__( 'Footer widget right area', 'spicepress' ),
        'id' => 'footer_widget_area_right',
        'description' => esc_html__( 'Footer widget right area', 'spicepress' ),
        'before_widget' => '<aside id="%1$s" class="widget %2$s wow fadeInDown animated" data-wow-delay="0.4s">',
        'after_widget' => '</aside>',
        'before_title' => '<div class="section-header"><h3 class="widget-title">',
        'after_title' => '</h3><span></span></div>',
    ) );
    
    
    
    register_sidebar( array(
    'name' => esc_html__('WooCommerce sidebar widget area', 'spicepress' ),
    'id' => 'woocommerce',
    'description' => esc_html__( 'WooCommerce sidebar widget area', 'spicepress' ),
    'before_widget' => '<aside id="%1$s" class="widget %2$s wow fadeInDown animated" data-wow-delay="0.4s">',
    'after_widget' => '</aside>',
    'before_title' => '<div class="section-header wow fadeInDown animated" data-wow-delay="0.4s"><h3 class="widget-title">',
    'after_title' => '</h3></div>',
    ) );
    
        // contact template page sidebar
    register_sidebar( array(
        'name' => esc_html__( 'Contact template sidebar', 'spicepress' ),
        'id' => 'wdl_contact_page_sidebar',
        'description' => esc_html__('Contact template sidebar', 'spicepress' ),
        'before_widget' => '<aside id="%1$s" class="widget %2$s wow fadeInDown animated" data-wow-delay="0.4s">',
        'after_widget' => '</aside>',
        'before_title' => '<div class="section-header wow fadeInDown animated" data-wow-delay="0.4s"><h3 class="widget-title">',
        'after_title' => '</h3></div>',
    ));
}                        