I like to use a child-theme.
The parent functions.php
function starkers_widgets_init() {
// Area 1, located at the top of the sidebar.
register_sidebar( array(
'name' => __( 'Primary Widget Area', 'starkers' ),
'id' => 'primary-widget-area',
'description' => __( 'The primary widget area', 'starkers' ),
'before_widget' => '<li>',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>',
) );
// Area 2 ...
My child-theme functions.php
function xtreme_unregister_sidebar() {
unregister_sidebar('primary-widget-area');
}
add_action( 'childtheme_sidebars', 'xtreme_unregister_sidebar' );
But doesn´t work for.
Thanks