Widget Context allows you to show or hide widgets on certain sections of your site — front page, posts, pages, archives, search, etc. It also features section targeting by URLs (with wildcard support) for maximum flexibility.
- Install the plugin through Add New Plugin feature in your WordPress dashboard — search for Widget Context.
- Widget Context settings will appear automatically under each widget under Design > Widgets.
I just love this buddy, it is easy to operate.
I’ve tried the 2 most downloaded, both failed. This one works perfectly! Great job guys, love it.
Can filter by URL
Can hide/show widget at post, page, paged, search page & any CPT.
The best in its category. Simply works !
Thanks for the great plugin.
Thank you very much!
A really nice plugin to avoid to get into the code and do stuff. Thanks a lot!!!!!
Contributors & Developers
“Widget Context” is open source software. The following people have contributed to this plugin.Contributors
1.0.4 (May 6, 2016)
- Confirm the plugin works with the latest version of WordPress.
- Fix the PHP class constructor warning.
- Move the widget context settings link.
- Fix the initial context state in the customizer.
- Include Russian translation (Thanks Flector!).
- Add textdomain to the remaining strings.
- Enable debugging if Debug Bar is available.
- Load available custom post types and taxonomies right before visibility checks to avoid PHP warnings.
- Run visibility checks only after the main post query has run. Fixes issues with WooCommerce.
- Fix PHP warning in custom post type and taxonomy module.
- Public release of the 1.0 refactoring.
- Improved settings page.
- Refactor code to allow custom widget context modules.
- Fix PHP warning that occurred on PHP 5.2.x.
- Improved SSL/HTTPS detection.
- Fix: Ensure that is_active_sidebar() & is_dynamic_sidebar() don’t return true when there are no widgets displayed on a page.
- Two new filters so that other plugins can override widget context display/visibility logic.
- Revert back to changing callback function in
$wp_registered_widgetsfor attaching widget context setting controls.
- Fix the word count logic.
- Major code rewrite and refactoring to improve performance and usability.
- Fix bugs with URL targeting and empty lines in the “Target by URL” textarea.
- Fix PHP warnings/notices. Props to James Collins.
- Confirm that the plugin works with the latest version of WP.
- Bug fix: check for active sidebars only after $paged has been set.
- Don’t check for used sidebars on each widget load. Allow absolute URLs in the URL check.
- Added distinction between is_front_page() and is_home(). Remove widgets from wp_get_sidebars_widgets() if they are not being displayed — this way you can check if a particular sidebar is empty.
- Widget output callback couldn’t determine the widget_id.
- Fixed widget control parameter transfer for widgets that don’t use the new widget api.
- Initial release on Plugin repository.