Create a new widget area in WordPress Theme

Hi, today I want to explain to you how you can create a new widget area in your Wordpress Theme. Its very simple to do it. You just need to add a simple code like this:

function widgets_init() {
register_sidebar( array(
'name' => __( 'Scrisoft Sidebar', 'scrisoft' ),
'id' => 'sidebar-1',
'before_title' => '

'after_title' => '

add_action('widgets_init', 'widgets_init');

Scrisoft Sidebar is name of area.

You can put this code in your functions.php file.


I have also created a video tutorial for this subject:

I hope that my tutorial has been helpful!

Leave a Comment