I use storefront child theme. In default sidebar yith filter in second category list.
Second sidebar(storefront_add_new_sidebar) in function.php
//----------------------------------------------------------------------------------
// ------------------------- remove sidebar from single product --------------------
//----------------------------------------------------------------------------------
add_action( 'get_header', 'remove_storefront_sidebar' );
function remove_storefront_sidebar() {
if ( is_product() || is_single() || is_page() || !is_product_category()) {
remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10);
add_action( 'storefront_sidebar', 'storefront_add_new_sidebar');
}
}
//----------------------------------------------------------------------------------
// ------------------------- new_custome_sidebar
//----------------------------------------------------------------------------------
function register_new_sidebar(){
register_sidebar(array(
'name' => 'Дополнительный Сайдбар',
'id' => 'new_custome_sidebar',
'description' => 'Дополнительный Сайдбар вместо основного',
'before_title' => '<h3><span>',
'after_title' => '</span></h3>',
'before_widget' => '<div class="new-sidebar1">',
'after_widget' => '</div>'
)
);
}
add_action( 'init', 'register_new_sidebar' );
function storefront_add_new_sidebar() {
?>
<div id="secondary" class="widget-area" role="complementary">
<?php dynamic_sidebar('new_custome_sidebar'); ?>
</div>
<?php
}