Hello, I’m using a plugin for a private area where pages are edited. When these are empty some pages display the default widgets. Is it possible to disable them? The plugin is WP Customer Area and support for this issue writes:
I tried to edit the functions.php file but it doesn’t work, thanks!
Hey elfuego1340,
Thank you for the inquiry.
We could add this snippet in the functions.php file to disable the dummy or default widgets when the sidebar is empty.
add_filter( 'avf_show_default_sidebars', 'avf_remove_default_sidebars', 10, 1);
function avf_remove_default_sidebars( $show )
{
return false;
}
Related thread:
// https://kriesi.at/support/topic/where-can-i-change-the-default-sidebar/#post-417870
Best regards,
Ismael
It works perfectly thanks !!!
Hi elfuego1340,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria