Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1253040

    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!

    #1254535

    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

    #1254981

    It works perfectly thanks !!!

    #1255060

    Hi elfuego1340,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.