Menu highlighting for single post (single.php)
-
Hi, I’m setting up my site mainly using static pages, with a horizontal drop menu nav bar across the top created using wp_list_pages.
I’ve also setup have dynamic nav highlighting (css) for the current page and also little jquery controlled pointer that highlights the current page. This way the user can easily see where they are at all times.
All is working great, except I need to find a way so that when a single post is displayed the nav is highlighted for the correct category. Currently single posts (displayed when a ‘more’ link or excerpt is clicked on) don’t show any nav highlighting.
I only have one category of posts, all of which are in a ‘NEWS’ catergory and displayed under a ‘NEWS’ parent page and nav menu highlight.
I guess I’m looking to find a way to fake an effect that the single.php temple (or any single post) is actually a child page of the ‘NEWS’ parent page.
Is this possible?
Can and greater, more knowledgeable mind please point me in the right direction?A million thanks
Stef
- The topic ‘Menu highlighting for single post (single.php)’ is closed to new replies.