“All The Word That's Fit To Press.”
A WP Engine

6 Plugins for Conditional Widgets

We’ve got some good options for displaying sidebars conditionally: either by coding them or using a plugin. But, I’ve had a few situations with clients where the widgets themselves should be conditional, instead of creating entire sidebars. What are the options?

I’ll walk you through six that I came across, and which one I landed on for this client. Remember that the most important thing for me here was to have it work intuitively for them, not me.

Conditional Widgets

Conditional Widgets

This one’s got a decent UI and seems to work as advertised. I think it’s simple enough to get the hang of quickly.

One part that caught me off guard is that it actually echoes text above a widget being used conditionally when WP_DEBUG is turned on. I like the idea of what’s happening there, but it’s without any explanation.

When it didn’t go away after logging out, I had to do a code-dive just to figure out what was happening.

Display Widgets


Display Widgets

This is another with a decent UI, although I find it a bit less intuitive than Conditional Widgets.

That said, it’s also been updated recently, which is a big plus in choosing something like this for a client.

Dynamic Widgets

Dynamic Widgets

Here’s where we start to trade a bit of the usability for features and flexibility. This gives you plenty of options, but takes you to another screen to complete them. That might be just fine for some clients more familiar with WordPress, but I’d prefer that most are able to complete these options in the widget view.

Widget Context

Widget Context


The conditions can be set in the widget view, but the implementation is a bit confusing. You’ve got checkboxes for templates (single post, single page, etc.), but you need to use actual URLs if you want the condition to be a particular page. Effectively, this means you still have to leave the widget view to get the input you need.

Widgets Controller

Widgets Controller


You get tons of options here that are only a click away, but I don’t think for a second this would make sense to a client. Instead of using the ‘pretty’ versions of terms, the logic selection’s options are all in slug_ID format (i.e. about_3).

This seems like more of a ‘I set up your widgets, please don’t touch them’ tool than something a less-familiar user would want.

Widget Logic

Widget Logic


If you have a death wish, here’s one you can set up for your client to use: a field of PHP conditions that get directly evaluated. :)

Obviously, this is designed for much, much more familiar users. It is indeed flexible, well-written, and up-to-date.

It’s another good option if you’re going to set things up and leave them as opposed to teaching a client how to use it.

My Outcome

When I had to decide recently, I rolled with Display Widgets. The UI was intuitive enough, and I valued the recency of its updates over Conditional Widgets’ cleaner implementation.

How have you solved this problem in the past, in a way that’s sustainable for you and your clients?

More WordPress News From Torque:
  • http://paulwp.com Paul

    how about Woo Sidebars?

    • http://cliffseal.com Cliff Seal

      Hey Paul,

      WooSidebars is linked up in the first sentence. It’s a great option, but it’s for conditional sidebars, and not widgets.

  • http://www.greenmellenmedia.com Mickey

    Similar to Paul, I’ve been using Genesis Simple Sidebars on some projects, but otherwise my weapon of choice is Widget Logic. Simple and straightforward.

  • http://webdesign.com Benjamin

    Widget Logic is simple and powerful. Plus it encourages users to learn more about conditional tags in WordPress which that knowledge can then be applied to writing more robust conditional statements. A great stepping stone in development with WordPress.

  • http://about.me/bradley Bradley Allen

    For some reason, I was not able to get either Display Widgets or Dynamic Widgets working with WPML, even though they say they support it. Anyone else?

    Looks like I’m sticking with Widget Logic, which has been recommended by WPML.

  • http://jaredatchison.com Jared

    Widget Logic. The UI on all the other ones makes me want to take a rusty fork to my eyes – I mean seriously, it’s like they went out of their way to confuse people.

  • http://wpforce.com Jonathan

    Widget Context is my plugin of choice, I’m a big fan of it.

  • http://www.filmverliebt.de/ Florian

    How can I remove the “Showing (Widget XY) because front page:” that is coming with the conditional widgets plugin?