How to higlight navigation menu current item on sub-categories and posts
-
Hi folks.
I′ve created a custom navigation menu, but it only add the highlight class “current menu item” to the top categories and top pages. When a sub-category, a post, or a sub-page is viewed, none of the menu items are highlighted. I want to fix that.
The idea is: The menu have a “Blog category”, and is highlighted when that category is viewed. If a subcategory of “blog” selected, for example “personal”, is selected, I want the “blog” item highlighted. The same if some post asociated with the “blog” category or one of his sub-categories is viewed.
I have a some custom functions made by myself to do it on WP versions prior to 3.0, but I want to use custom navigation menus now. So if someone knows how to do that with custom navigation menu, I will thanks him with all of my soul.
- The topic ‘How to higlight navigation menu current item on sub-categories and posts’ is closed to new replies.