Add this code in function.php:
register_sidebar( array(
'name' => __( 'Leftwidget', 'tto' ),
'id' => 'lefthome',
'description' => __( 'Found at the bottom of every page (except 404s, optional homepage and full width) as the footer. Left Side.', 'tto' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
register_sidebar( array(
'name' => __( 'rightwidget', 'tto' ),
'id' => 'righthome',
'description' => __( 'Found at the bottom of every page (except 404s, optional homepage and full width) as the footer. Left Side.', 'tto' ),
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title">',
'after_title' => '</h3>',
) );
Add this code in index.php(or where you want to add widgets)
<?php if ( is_active_sidebar( 'lefthome' ) ) : ?>
<?php dynamic_sidebar( 'lefthome' ); ?>
<?php endif; ?>
<?php if ( is_active_sidebar( 'righthome' ) ) : ?>
<?php dynamic_sidebar( 'righthome' ); ?>
<?php endif; ?>
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]