Join millions who empower their websites with ElementsKit Elementor Addons. Get templates, & 100+ widgets...
Make your site react to users' context by changing your theme's CSS and JavaScript files, navigation menus, sidebars and the HTML body tag.
Context Manager is a WordPress plugin that allows your site to adapt based on the current user's context. You can control various elements such as CSS and JavaScript files, menu behaviours, sidebar widgets, and body classes through an easy-to-use admin interface.
This plugin is suitable for those managing e-commerce sites or any site that requires dynamic changes based on user interactions. It helps enhance user experience by ensuring relevant content is displayed while hiding distractions.
Best for: This plugin is best for e-commerce sites or any WordPress site needing context-specific customisation.
What it does well
Where it falls short
Context Manager provides useful functionality for tailoring site behaviour to user context, but its age and limited active installs may be a concern for some users.
Phill Brown's own description of Context Manager, lightly tidied.
Context Manager makes your site behave differently depending on the current user’s context. Using the simple point-and-click admin pages, there are four different ways your site can react:
<body> tag.The plugin supersedes Menu Rules
A website has e-commerce shopping functionality driven by a custom post type called ‘products’. There’s an archive page called ‘shop’ that lists products and is linked to in the main navigation menu.
A user visits ‘shop’ and the menu item becomes ‘active’, but when they click through to an individual product, the menu item loses its state. The user becomes lost.
is_singular( 'product' )On the product page, there are irrelevant widgets that distract the user from making a purchase.
The whole shop section requires its own colour scheme, but there’s no common class that ties all the pages together.
shop-section class name in the body class reaction. Or alternatively, register another stylesheet using wp_register_style() in you theme’s functions.php.Remember to click publish when you’re ready to save.
Have a look at screenshots to see the above setup in action.
If you’re stuck, ask me for help on Twitter.
Other plugins for site navigation.
Join millions who empower their websites with ElementsKit Elementor Addons. Get templates, & 100+ widgets...
Elementor Carousel, Mega Menu, Posts List/Slider, WooCommerce Widgets, Display Conditions, AI Abilities, Prema...
Elementor templates, Header footer builder, Elementor Post Grid, Woocommerce Grid builder, Slider, Forms, Gall...
Adds breadcrumb navigation showing the visitor's path to their current location.
Add icons to WordPress navigation menus easily — pick from Font Awesome, Dashicons, image icons & more. St...
Create a welcome notification bar for your website. Also, My Sticky Bar plugin can make your menu or header st...