Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1013235

    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.

    #1013264

    Hey SilviaNT,

    Please create me an admin account and I’ll check the configuration.

    Best regards,
    Peter

    #1013294
    This reply has been marked as private.
    #1014013

    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

    #1014104

    Thank you. The code works.

    #1014523

    Hi,

    Great, glad you got it working. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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