• Resolved tictok

    (@tictok)


    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

Viewing 1 replies (of 1 total)
  • Thread Starter tictok

    (@tictok)

    Just to let anyone interested know that I achieved this using the excellent wp-menu plugin.

    https://www.ads-software.com/extend/plugins/wp-menu/

    within its arguments it allows you to bind a category ID to a page ID, or even all your Blog posts to a page ID resulting in the nav highlighting working correctly for single category posts

    Thanks ??

Viewing 1 replies (of 1 total)
  • The topic ‘Menu highlighting for single post (single.php)’ is closed to new replies.