<?php 
// ================================
// HowCan Theme Functions
// register sidebar 
// ================================

function howcan_register_sidebars() {
 
 // right widgets one
 register_sidebar(array(
   
 
 'id' => 'sidebar-1',
 'name' => __('Right widgets', 'howcan'),
 'description' => __('Add Anything to Your Right Sidebar', 'howcan'),
 'before_title'=>'<h3 style="border-left:3px solid black;" class="container">',
   'after_title'=>'</h3><hr>',
   'before_widget'=>'<div style="margin-top:5px;" class="container widget_text"><b>',
                
    'after_widget'=>'</b></div><hr>'
   
   
   ));
 // more widgets will bellow
 
 // footer 1
  register_sidebar(array(
    
    
    'id'            => 'footer-1',
   'name' => __('Footer widgets 1', 'howcan'),
 'description' => __('Add Anything to Your footer widgets', 'howcan'),
    'before_widget' => '<div class="mb-3 widget_text">',
    'after_widget'  => '</div>',
    'before_title'  => '<h5 class="mb-2">',
    'after_title'   => '</h5>',
  ));
  //footer 2
  register_sidebar(array(
    
    
    'id'            => 'footer-2',
   'name' => __('Footer widgets 2', 'howcan'),
 'description' => __('Add Anything to Your footer widgets', 'howcan'),
    'before_widget' => '<div class="mb-3">',
    'after_widget'  => '</div>',
    'before_title'  => '<h5 class="mb-2">',
    'after_title'   => '</h5>',
  ));
  
  //footer 3
  register_sidebar(array(
    
    
    'id'            => 'footer-3',
   'name' => __('Footer widgets 3', 'howcan'),
 'description' => __('Add Anything to Your footer widgets', 'howcan'),
    'before_widget' => '<div class="mb-3">',
    'after_widget'  => '</div>',
    'before_title'  => '<h5 class="mb-2">',
    'after_title'   => '</h5>',
  ));
    
}
add_action( 'widgets_init', 'howcan_register_sidebars' ); //end 


?>