![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/f1735e8503dec866193d7f03d26b98f3-87a1c39.jpg)
Hi, i'm trying to unregister the secondary sidebar like that
unregister_sidebar('sidebar_secondary');
but it doesn't work ....
![](https://beanscommunity.wpenginepowered.com/wp-content/uploads/beans/images/27c64319e1ca198958613305e6ea1b6e-87a1c39.jpg)
Hi Alexandra,
It looks like you're using the Genesis way. This is what's found in the docs and what I used which worked for me.
// Remove the secondary sidebar.
add_action( 'widgets_init', 'example_widget_area' );
function example_widget_area() {
beans_deregister_widget_area( 'sidebar_secondary' );
}