mh_newsdesk_lite_widgets_init

The MH Newsdesk lite mh newsdesk lite widgets init function.

Description

mh_newsdesk_lite_widgets_init(); 

Usage

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

Defined (1)

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

/functions.php  
  1. function mh_newsdesk_lite_widgets_init() { 
  2. register_sidebar(array('name' => esc_html__('Global Sidebar', 'mh-newsdesk-lite'), 'id' => 'sidebar', 'description' => esc_html__('Sidebar used globally throughout your site.', 'mh-newsdesk-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget clearfix %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>')); 
  3. register_sidebar(array('name' => esc_html__('Home 1 - Large Column (Top)', 'mh-newsdesk-lite'), 'id' => 'home-1', 'description' => esc_html__('Large column on Homepage.', 'mh-newsdesk-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>')); 
  4. register_sidebar(array('name' => esc_html__('Home 2 - First Column', 'mh-newsdesk-lite'), 'id' => 'home-2', 'description' => esc_html__('First column on Homepage.', 'mh-newsdesk-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>')); 
  5. register_sidebar(array('name' => esc_html__('Home 3 - Second Column', 'mh-newsdesk-lite'), 'id' => 'home-3', 'description' => esc_html__('Second column on Homepage.', 'mh-newsdesk-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>')); 
  6. register_sidebar(array('name' => esc_html__('Home 4 - Large Column (Bottom)', 'mh-newsdesk-lite'), 'id' => 'home-4', 'description' => esc_html__('Large column on Homepage.', 'mh-newsdesk-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>')); 
  7. register_sidebar(array('name' => esc_html__('Home 5 - Sidebar', 'mh-newsdesk-lite'), 'id' => 'home-5', 'description' => esc_html__('Sidebar on Homepage.', 'mh-newsdesk-lite'), 'before_widget' => '<div id="%1$s" class="sb-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="widget-title"><span>', 'after_title' => '</span></h4>'));