- Add the following code into function.php
function ourWidgetsInit() { register_sidebar( 'name'=>'Sidebar', 'id' => 'sidebar1' )); } add_action('widgets_init', 'ourWidgetsInit');
- Add the following code into your template file(front end)
<?php dynamic_sidebar('sidebar1'); ?>