Have you ever pondered over how to make a WordPress widget (in)visible only on certain pages, or categories, or just on the home page etc?
If you haven't then don't. It is pretty much boring.
However, if you are losing your sleep over widgets conditionality (is this even a word?), you will be able to restore your inner peace very soon. Just keep reading.
The magical wand in this case is called - surprise, surprise! - Conditional Widgets, and can be downloaded from here: https://wordpress.org/plugins/conditional-widgets/
The author of the plug-in went an extra mile regarding the UI - it is perfectly well thought and there is no learning curve at all. Once the plug-in is installed, you will know how to use it straight away. No extra settings hidden somewhere in the admin menus, no other quirks - you will simply see an extra menu at the bottom of each widget, allowing you to set up all the necessary conditions for showing (or hiding) the widget, in a well defined, clear manner.
The only "disadvantage" (please note the quotes) is that if you have multiple widgets to be hidden most of the time and only visible when certain conditions are met, you will still see all of them in the admin area. For instance on this blog, at the very moment, there are six extra widgets visible in the admin area that you won't see on the blog unless you visit certain category or page.
There is plethora of conditions you can define to enforce a widget to be displayed or hidden from your readers. Some of them are:
- front page
- categories (one, some, all)
- pages (one, some, all)
- special pages (404, search results, archives etc etc)
- mobile / desktop
And you can combine the conditions, too!
The most useful to me is the possibility of showing a widget when displaying a post belonging to certain category. For instance, the "More in English" thingy on the margin is only visible when you open a post belonging to the "English" category. And so on.
It is not all roses though. One of the things missing here is that the on/off conditions do not cater for a single post (or a group od arbitrary posts). This would make the plug-in complete for me but even without this I am pretty happy to recommend the "Conditional Widgets" plug-in to anyone running a WordPress blog. It makes your website more dynamic and even, like, you know, smarter...