Highlight menu items when viewing a single WordPress post (1 post)

  1. wp-user-487
    Posted 3 years ago #

    I have a WordPress 3.3.2 custom theme. The theme's menu can highlight current pages and categories, but I am unable to highlight menu items when a post is open.

    I want to know how I could do this, so if I posted a blog post, e.g. in the category "Dogs" it could highlight relevant items in the menu and submenu.

    [code moderated - use the pastebin for any code over the forum limit of 10 lines]

    Note: these are some imilar resources/questions, although they haven't helped me yet as I am using a custom theme:

    1. http://wordpress.org/support/topic/how-to-higlight-navigation-menu-current-item-on-sub-categories-and-posts
    2. http://designisphilosophy.com/tutorials/highlight-current-page-or-category/

Topic Closed

This topic has been closed to new replies.

About this Topic