wp_nav_menu single post highlight
-
My menu is like this:
Blog (page)
– Blog 1 (page which displays posts under blog category)
– Blog 2 (page which displays posts under blog category with a diff. template)
…When I go to “Blog 1”, “Blog” in the menu is highlighted properly. However when I open a single post from the blog category the highlight doesn’t work anymore. Because wp_nav_menu doesn’t generate neccessary classes for it at this point. I think to be able to achieve this I need to add a jQuery code or something. Can anyone help me please?
Note: I cannot use special post classes like giving specific slugs or IDs because this will be used in a template.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘wp_nav_menu single post highlight’ is closed to new replies.