I’m looking for a plugin to let users choose which widgets appear on individual pages.
There’s some solutions out there, none of which that I’ve found are truly easy for a non-technical user. I’ve tried
- Woo Themes Sidebar manager – Great
functionality, but a user would need a lot of training to understand
templates, sidebars and widgets – quite confusing. - Plugins like Widget context and Widget logic, both of
which, in my opinion are difficult for an average user.
I have seen a good-looking solution which uses the Genesis Framework (simple sidebars) – this has the right approach. The user can choose the widget from within the page editor. To me, that’s the important point.
So, does anyone know any plugins (not using Genesis) which allow the same in-page choosing of sidebars?
You can create your own sidebar if you want.
add the following to your
functions.php
and you can use this widget by using the following code
Hope this helps
Try Display Widgets. It’s what i use most of the time, and it’s pretty simple to use from the Widgets settings. It might also be possible to tweak it to function as a meta box.
I use Widget Context to achieve this. It’s quite flexible, covers almost every logic you would need to display/hide a widget and in case it’s not there lets you create custom rules like a specific url where you would like to display / hide your widget.
Not to mention it’s been around for a long time and is well maintained.
You can use code to control where your widget displays by adding a conditional tag to the code which calls your sidebar in your template file:
Another way to call your widget is to use code like this directly in a template file or from your functions file:
Note: This code will only work if you have also registered a sidebar in your functions file.