• The houseporn link above isn’t the site I’m working on — it’s the site with the effect I’m trying to duplicate.

    You’ll note that the menu has five items. Each item corresponds to a category. When a user views a post belonging to a particular category, I want the menu item corresponding to that category to be highlighted. So, for instance, if a user is viewing a post in the Landscape category, I want the Landscape item in the main menu to be highlighted.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    ?Please try to add the below CSS code from the Appearance > Customize > Custom CSS, and check.

    #navigation .current_page_item a {
        color: #fdfd4c !important;
    }

    PS- Change the color code according to need.

    Thread Starter sol0712

    (@sol0712)

    No difference, sadly, but thank you just the same.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘highlighting menu items related to posts being viewed’ is closed to new replies.