child theme loads before the parent theme
one does not simply remove not added action hook =)
Yes. But that doesn’t mean that functions added on the child-theme are executed first. All functions are collected first then executed depending on their priority or whenever they are called.
You should be able to accomplish what you want by adding this on your child-theme’s functions.php, just tested and it works as expected.
function remove_default_sidebar() {
remove_action( 'widgets_init', 'flounder_widgets_init' );
}
add_action( 'after_setup_theme', 'remove_default_sidebar' );
function add_custom_sidebar() {
register_sidebar( array(
'name' => __( 'Sidebar', 'flounder' ),
'id' => 'sidebar-1',
'before_widget' => '<aside id="%1$s" class="widget %2$s">',
'after_widget' => '</aside>',
'before_title' => '<h1 class="widget-title">',
'after_title' => '</h1>',
) );
}
add_action( 'widgets_init', 'add_custom_sidebar' );