How to Use Conditional Widgets with WordPress and Why They’re Awesome

Have you ever wanted to display different widgets within your sidebar or footer based on which page or category is being viewed? For example, lets say you have a widget for a calendar and you only want this to appear on your “events” page. This is a situation that calls for conditional widgets.

One option would be to hack your theme to bits in order to give your site support for conditional widgets, but that would be tedious and would require quite a bit of work. I’m a huge fan of easy, time-saving solutions. That’s why I’d like to introduce you to the Conditional Widgets plugin.

More than likely you’ve worked with conditional sidebars before, which give you the ability to show a different sidebar based on which page is being displayed. Conditional widgets, on the other hand, offer you the ability to control the display at the individual widget level.

Here’s how the Conditional Widgets plugin works: It adds an expandable form at the bottom of each of your widget settings where you can control the display options. You can select whether or not the widget is displayed on the home page as well as other pages and categories. The best part is that it requires no knowledge of php or conditional tags.

Simply install and activate the plugin and the new widget settings will instantly appear. Assign different pages or categories for each in order to conditionally show or hide them. The settings even extend to subcategories for more specific control.

Why use conditional widgets?

  • Conditional widgets are the best way to maximize the available real estate on the page. Truly there’s nothing that screams “WordPress blog site!” louder than a million widgets running down the side of the page. If you need more of a CMS style website, then conditional widgets will help you to make better use of the available space.
  • Keep your sidebars relevant to the page the user is viewing, instead of settling for static sidebar content. Not every widget needs to appear 100% of the time. Some are more blog-oriented, such as archives or a post calendar. Others are only relevant to certain plugins you may be using, such as e-commerce, events or maps. Conditional widgets lets you target the widgets to the pages where they are useful and hide them from more general pages.

The Conditional Widgets plugin is available for free in the WordPress repository. Get your copy today and start cleaning up your sidebars and footers.

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Ecommerce Shopping Cart Plugin

Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - WordPress Facebook Plugin

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - WordPress Newsletter Plugin

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Comments (10)

  1. While post-page and post-category logic is great (and other plugins now do this), the holy grail here is to be able to do post-to-post logic. Can this plugin do that?

  2. Interesting plugin, but it doesn’t seem to work with custom post types and taxonomies.

    Any idea’s on a plugin like this, or one that would allow creation of new sidebar areas specific to all custom post types within a custom taxonomy?

  3. Hi – Conditional Widgets plugin author here. :)
    Thanks for the kind words. I released 1.1 today that adds options for Search Results, 404 pages, Author Archives, and Date Archives as well.
    Cheers

Participate