bug_blog_sidebars

Vew count: 336

Code sample:

add_filter('bug_blog_sidebars','bug_blog_sidebars_extra');

function bug_blog_sidebars_extra($sidebars){

  $sidebars[] = array(
    'name'          => __( 'Home - Sidebar', 'bug-blog' ),
    'id'            => 'home-widget',
    'description'   => '',
    'before_widget' => '<aside id="%1$s" class="widget home-widget %2$s"><div class="widget-wrapper">',
    'after_widget'  => '</div></aside>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
  );

  $sidebars[] = array(
    'name'          => __( 'Page - Sidebar', 'bug-blog' ),
    'id'            => 'page-widget',
    'description'   => '',
    'before_widget' => '<aside id="%1$s" class="widget page-widget %2$s"><div class="widget-wrapper">',
    'after_widget'  => '</div></aside>',
    'before_title'  => '<h3 class="widget-title">',
    'after_title'   => '</h3>',
  );


  return $sidebars;
}

 

WordPress Blog theme