Hi,
After setting the sidebar to a custom sidebar on a page it not only shows that one but the site default sidebar as well. I only want to show the custom sidebar for that page. I have pasted link below.
Hey SilviaNT,
Please create me an admin account and I’ll check the configuration.
Best regards,
Peter
Hi,
Thank you for the update.
You can add this filter in the functions.php file to disable the “Display Everywhere” widget area when a custom sidebar is present.
add_filter('avf_custom_sidebar', 'avf_custom_sidebar_mod', 10, 1);
function avf_custom_sidebar_mod($sidebar) {
if(!empty($sidebar)) {
unregister_sidebar('av_everywhere');
}
return $sidebar;
}
Best regards,
Ismael
Thank you. The code works.