Register a Custom Sidebar Widget Area
Registers a new named widget area that can be displayed anywhere via dynamic_sidebar() or a shortcode.
PHPby SnipCraft
php
<?php
if ( ! function_exists( 'scseed_register_custom_sidebar' ) ) {
function scseed_register_custom_sidebar() {
register_sidebar( array(
'name' => __( 'Custom Widget Area', 'scseed' ),
'id' => 'scseed-custom-sidebar',
'description' => __( 'Add widgets here to display them in the custom widget zone.', 'scseed' ),
'before_widget' => '<section id="%1$s" class="widget %2$s">',
'after_widget' => '</section>',
'before_title' => '<h2 class="widget-title">',
'after_title' => '</h2>',
) );
}
}
add_action( 'widgets_init', 'scseed_register_custom_sidebar' );#admin#customization#sidebar#widgets