WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Widgets
Hybrid theme - empty sidebar appears even when widgets set not to display (5 posts)

  1. M One
    Member
    Posted 2 years ago #

    As a non tech I like Dynamic Widgets - lots of flexibility and language support without coding.

    However found a problem on my sites using Hybrid:

    Add a widget to the primary area and use Dynamic Widgets to set it to appear on a single page - it does what it says on the tin and the widget only appears on designated page BUT every other page on the site now has an (empty) sidebar.

    Any ideas why this may be?

    Thanks.

    http://wordpress.org/extend/plugins/dynamic-widgets/

  2. Qurl
    Member
    Plugin Author

    Posted 2 years ago #

    This is probably theme related. A lot of themes do not allow an empty sidebar, esp. when it's the primary sidebar. Sometimes there are standard widgets placed into it when a sidebar is or becomes empty. In your case it looks like you're left behind with an empty sidebar. There might be a good reason for not removing the sidebar. It can break the lay out when it's removed.

  3. M One
    Member
    Posted 2 years ago #

    Thanks Qurl - thing is Dynamic Widgets is the only plugin to exhibit this behavior in the custom theme I built on hybrid core.

    Widget Context and Widget Logic work just fine for example.

    Shame because other wise it's my preferred choice.

  4. M One
    Member
    Posted 2 years ago #

    For more info from hybrid framework developer:

    "the theme will use is_active_sidebar() to check if a sidebar is "active" (i.e., if it has widgets). The plugins must filter this to tell WordPress/themes that there's no widgets in the sidebar when none must be shown."

  5. Qurl
    Member
    Plugin Author

    Posted 2 years ago #

    Hmmm... that's funny actually, because both plugins you mention are using a 'hack' and not filtering the sidebar by using add_filter('sidebars_widgets', 'x');

    The mentioned hack is also provided in DW because some themes do confuse DW which makes the filter not behaving correctly. This is called the OLD methods in DW. At the overview page, go to the bottom and click 'Advanced'. Tick the checkbox "Use OLD method".

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic