Unregister secondary sidebar


Hi, i'm trying to unregister the secondary sidebar like that

unregister_sidebar('sidebar_secondary');

but it doesn't work ....


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' );

}

Write a reply

Login or register to write a reply, it's free!