WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Dynamic Widgets] Hybrid theme – empty sidebar appears even when widgets set not to display

[Plugin: Dynamic Widgets] Hybrid theme – empty sidebar appears even when widgets set not to display

  • M One
    Participant

    @m-one

    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/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Qurl
    Member

    @qurl

    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.

    M One
    Participant

    @m-one

    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.

    M One
    Participant

    @m-one

    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.”

    Plugin Author Qurl
    Member

    @qurl

    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”.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Dynamic Widgets] Hybrid theme – empty sidebar appears even when widgets set not to display’ is closed to new replies.