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:
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-sectionclass name in the body class reaction. Or alternatively, register another stylesheet using
wp_register_style()in you theme's
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.
Requires: 3.2 or higher
Compatible up to: 3.7.16
Last Updated: 3 years ago
Active Installs: 200+
Got something to say? Need help?