WordPress Sidebar Generator

Generate WordPress sidebar codes.
#1 | Sidebar Name
wp-skills.com

// Register custom sidebars
function wpskills_custom_sidebars() {

    $args = array(
        'name'          => __( 'Sidebar Name', 'text-domain' ),
        'description'   => __( 'Description', 'text-domain' ),
        'id'            => 'sidebar-id',
        'class'         => 'class',
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget'  => '</li>',
        'before_title'  => '<h2 class="widgettitle">',
        'after_title'   => '</h2>',
    );
    register_sidebar($args);
    
}
add_action( 'widgets_init', 'wpskills_custom_sidebars' );