Widget Logic is a plugin for WordPress that allows the user to designate what widgets go on specific pages, posts, categories, and more.
This is a plugin that requires you to know WordPress conditional tags and Boolean markup. Also, some of the conditional tags that are most obviously, sometimes do not work in the way that we are familiar with. For example, for themes that use the home.php, the is_home conditional tag may not work correctly for the front of the site, but the conditional tag may work on the blog page itself.
This plugin is not handy for those not so code savvy, or handy for those who want to use this, rather than code conditional statements into new theme templates or in the functions.php file. For those who aren’t familiar with WordPress conditional tags, but are at least interested in learning in order to use this plugin, it is not too difficult to learn based on the plugin developer’s FAQ and Other notes section.
The Widget Logic plugin also allows for no changes when you switch from one theme to another. For example, if you hard coded the conditional statements for widgets into the them template files, you would have to copy and paste them into the new theme.
In general, this plugin is really simple. You can even export your Widget Logic settings.
Some example of how to use conditional tags for Widget Logic
In themes using a custom front page and a blog page where you have specified your front page and blog in your general settings (WordPress backed under Settings> Reading), if you want a widget to only appear on the blog front page and single posts, the conditional tags and code you would put into a widget is:
!is_page() || is_home() || is_single()
If you want your widget to show on pages:
In fact, the Conditional tags page in the WordPress Codex is definitely a good place to look if you need to use specific roles, categories, and more. The Other Notes tab in Widget Logic is also a good and short resource to begin with.
Have you used Widget Logic? What are your thoughts?