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

May 26, 2011  | 
10 Comments

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 - Start Your Own Powerful Membership Site

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 + Google Maps = Perfect

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 - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Send beautiful html email newsletters, from WordPress!

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 - Open an Online Store with MarketPress

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

Featured Plugin - Turn any WordPress page into a fully featured wiki!

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 - Start your own Quora / StackOverflow / Yahoo Q&A site

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 - Add bottom corner (or anywhere else) chat to your site

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 - Easily integrate your WordPress site with Facebook

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

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

  1. Well… It’s seems to add a user-friendly UI on top of Widget Logic plugin…
    Worth testing anyway… for complex conditionnal tags creation!

  2. 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?

  3. I still prefer widget logic.

  4. Thanks! Know of any way to do this with a set of widgets (say 4) where only one would show each time the page is reloaded?

  5. Pingback: How to Use Conditional Widgets with WordPress and Why They're …

  6. Pingback: Control what widgets show on what pages | {Blog Architects}

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

  8. I was looking for this plugin for quite some time and now I finally got it. Thank you!

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

  10. I am currently using dynamic widgets which i am pretty happy with. Will try this and widget logic too, thanks

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting