Keeping ‘current-menu-item’ highlight of navigation menu?

The navigation menu of my site is generated via

wp_nav_menu( array( 'theme_location' => 'primary') );

Some menu entries are category pages (say /category/news/). This page contains links to the next level, single post posts (say /news/123/).

Read More

I noticed that the menu is only highlighted (‘current-menu-item’ class) when the category page is the current. How can I make the menu stay highlighted when viewing single post pages (/news/123/)?

Related posts

Leave a Reply

1 comment