Add a sidebar widget
hi i wish to add a new sidebar widget that is solely for my homepage in job roller.
i have regsitered in sidebar-themes.php and i have created the file sidebar-homepage.php with the correspoding new name home rather than main such as below
register_sidebar(array(
'name' => __('Main Sidebar','appthemes'),
'id' => 'sidebar_main',
'description' => '',
'before_widget' => '<li id="%1$s" class="widget %2$s"><div>',
'after_widget' => '</div></li>',
'before_title' => '</div><h2 class="widget_title">',
'after_title' => '</h2><div class="widget_content">',
));
register_sidebar(array(
'name' => __('Home Sidebar','appthemes'),
'id' => 'sidebar_home',
'description' => '',
'before_widget' => '<li id="%1$s" class="widget %2$s"><div>',
'after_widget' => '</div></li>',
'before_title' => '</div><h2 class="widget_title">',
'after_title' => '</h2><div class="widget_content">',
));
This is appearing now in the widget area, so i have then gone to index.php and change the current to
<?php get_sidebar('home'); ?>
this works if i reference <?php get_sidebar('blog'); ?> or <?php get_sidebar('resume'); ?> but does not work for the new sidebar i have created.
where else do i need to register the sidebar?
many thanks