WordPress plugin intelligence profile

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.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.7
Current version1.2.0
WordPress coverageTested up to WordPress 3.7
Minimum stackWP 3.2 · PHP —
Directory statusactive
Last directory update13 Nov 201312y ago
Active installations20Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 5 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Context Manager version 1.2.0 as active, updated 12y ago and tested up to WordPress 3.7.

Overview

About this plugin

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:

  • Include and exclude CSS and JavaScript files
  • Changing the behaviour of menu items
  • Hiding widgets in sidebars
  • 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.

  • Install the Context Manager plugin
  • Add a new context rule
  • Give it a meaningful name in the title field. This is just for administration purposes
  • In the conditions field enter is_singular( 'product' )
  • Choose Emulate current page as a child but do not create a menu item. as the menu rule
  • 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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • widget logic
  • wp enqueue scripts
  • wp enqueue styles
  • context
  • rules
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.7

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.7.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.7
Minimum requirementsWordPress 3.2 · PHP not listed
Update activity13 Nov 201312y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.