one solution to your problem using jQuery( put this code in functions.php
)
<?php
add_action('wp_footer','ravs_browse_menu');
function ravs_browse_menu(){
if(isset($_GET['cat']) && $_GET['cat'] !=''){
?>
<script>
jQuery(document).ready(function(){
jQuery('#menu-item-299').addClass('current-menu-item');
});
</script>
<?php
}
}
?>
Related Posts:
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Custom Nav Walker menu – Display category count
- Different templates for parent and children categories/taxonomies
- Reflect nested categories in appearance > menus
- Remove “Category Archives: title” at the top of a category page [duplicate]
- Exclude a category from the filed under list only on some templates
- Is there a function to cause empty categories not to show in menus?
- Assign different category colours to different categories in the main menu
- Auto add pages to category menu
- How to show empty category in admin menus search
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- How to override Category rendering mechanism
- How to control template resolution if both Author and Category filter in place?
- Automatically add product_categories to nav_menu
- Hide post meta data on a specific category
- Add Product categories to WordPress menu without losing hierarchy
- Custom Category/Subcategory structure
- Custom page for WooCommerce’s /product-category/
- Code to pull in a PHP file named after the category ID
- Show recent posts in menu?
- Show Different Custom Menu on Different Category Pages
- How to make a Thumbnails Mosaic
- Are Category or Tag Archive Pages Possible?
- Implementing a tricky wordpress menu (nested categories + thumbnails)
- Possible to make a subdirectory that loops through a single category?
- Set a them for all subset of category
- How to display only posts assigned to a particular, isolated, subcategory
- Show number of articles in menu
- How to show only one category in breadcrumb navigation
- Automatically adding categories and authors in custom menu?
- Category location styling
- Archive.php filtered by pre-determined category
- one category template for multiple categories
- Hide woocommerce category name from specific pages
- The default code for “posts_nav_link” on category.php isn’t working
- Only one post is showing on category page, why?
- category permalinks
- Categories overview that links to page displaying posts
- How can I get categories IDs if multiple categories requested via URI?
- Different menu navigation per category
- WP admin broken. Not saving catgories or adding categories to menu
- Style category link depending on category ID
- Custom Walker for wp_list_categories
- Does “show_option_all” in wp_list_categories do anything?
- How can I improve this taxonomy treating approach?
- How to insert category list into post creation page, and retrieve chosen categories?
- Why do I have stray bullet from
- Create menu locations for each category in wordpress
- Hooking to walker_nav_menu_start_el to insert list of subpages
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- Custom template for sub-sub-categories
- What Must to Display the “mysite.com/category” URL?
- Simple way to style posts of a single category differently in the loop and in single
- Remove Archive | from Categories
- Show different menu on each woocommerce category page
- Why is my sub-category template showing the wrong posts
- Same menu for different taxonomies to reach different content
- How to get category id’s which are added in main menu?
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- Link from navbar to categories
- Display subcategories selectbox on each category page
- Category link redirect to custom template page instead of index.php?
- How can I include custom category and tag base in template files?
- wp_nav_menu not appearing correctly on category page
- Category Template – Show Last Entry as Featured
- Custom menu with categories and tags
- Showing different posts on category pages
- Displaying categories in different template problem
- Categories are not available AT ALL under Menus
- How to list posts from a sub-category that is listed in a parent category (more details below)?
- category description not showing in my woocommerce
- ADD DYNAMIC attribute for category to accordion
- How to add all subcategories as submenu in WordPress menu
- Display menu in category and sub category
- How to “remove” WordPress categories UL and make the list loop in a horizontal line?
- Dynamically display sub-categories on primary menu without adding them
- Show alternative menu based on page template AND post category
- Menu with category 2 category combined
- omit categories from main navigation menu
- Using a template page parent breaks page
- the_content() not showing full posts in category template
- Use different file includes for single.php
- Choosing different templates for categories
- Getting page/category content to show up in my custom page template
- Backend – Categories and Menus conflicts
- Using categories and pages in menus
- Conditions for single post
- Automatic menu creation for pages with categories?
- Custom CSS to resize elements in multiple categories
- One category not displaying template updates
- Custom Fields to Category edit page, then displaying them in a template correctly
- Custom Woocommerce Category view
- How to prevent uppercasing of menu titles
- How can i hide the authors box from a specific set of categories and post types?
- Why does my category page display “posted on…” when all I want it to do is display categories?
- How to create a template for categories
- How to load/include category templates based on conditionals?