WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Phill Brown v1.2.0

Context Manager

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

The facts

Rating
5★ from 5
Active installs
20+
Price
Free
Last updated
13 Nov 2013
Added
Dec 2012
Requires WP
3.2
Tested up to
WP 3.7.41
Downloads
4,866

Our analysis

AI-assisted

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

  • Free to use from the WordPress.org directory
  • Allows for customisation of CSS and JavaScript based on context
  • Enables hiding of widgets in sidebars
  • Facilitates changing menu item behaviour
  • Easy point-and-click admin setup

Where it falls short

  • Last updated in November 2013, which may affect compatibility
  • Limited active installs may indicate a smaller user base
  • No information on support or documentation beyond Twitter

Verdict

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.

From the developer

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:

  1. Include and exclude CSS and JavaScript files
  2. Changing the behaviour of menu items
  3. Hiding widgets in sidebars
  4. Adding extra classes to the <body> tag.

The plugin supersedes Menu Rules

Example usage

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.

  1. Install the Context Manager plugin
  2. Add a new context rule
  3. Give it a meaningful name in the title field. This is just for administration purposes
  4. In the conditions field enter is_singular( 'product' )
  5. Choose Emulate current page as a child but do not create a menu item. as the menu rule
  6. Find your products page in the menu dropdown

On the product page, there are irrelevant widgets that distract the user from making a purchase.

  • Hide irrelevant widgets under the widgets reaction

The whole shop section requires its own colour scheme, but there’s no common class that ties all the pages together.

  • Enter shop-section class name in the body class reaction. Or alternatively, register another stylesheet using wp_register_style() in you theme’s functions.php.
  • Create

Remember to click publish when you’re ready to save.

Have a look at screenshots to see the above setup in action.

Support

If you’re stuck, ask me for help on Twitter.

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for site navigation.

ElementsKit Elementor Addons

Join millions who empower their websites with ElementsKit Elementor Addons. Get templates, &amp; 100+ widgets...

Free 1M+ installs 4.9★ (2,036)
Premium Addons for Elementor

Elementor Carousel, Mega Menu, Posts List/Slider, WooCommerce Widgets, Display Conditions, AI Abilities, Prema...

Free 600k+ installs 4.9★ (1,677)
Royal Addons for Elementor

Elementor templates, Header footer builder, Elementor Post Grid, Woocommerce Grid builder, Slider, Forms, Gall...

Free 600k+ installs 4.8★ (611)
Breadcrumb NavXT

Adds breadcrumb navigation showing the visitor&#039;s path to their current location.

Free 800k+ installs 4.6★ (132)
Menu Icons by Themeisle

Add icons to WordPress navigation menus easily — pick from Font Awesome, Dashicons, image icons &amp; more. St...

Free 100k+ installs 4.9★ (848)
My Sticky Bar

Create a welcome notification bar for your website. Also, My Sticky Bar plugin can make your menu or header st...

Free 100k+ installs 4.9★ (1,196)