Keep main nav "selected" when viewing sub pages.
-
Hello,
I’ve been handed a wordpress site and asked to make changes to it. One request I’ve been asked to do is to modify the main navigation bar at the top, so when a link is clicked at the top, the background image changes so you know you’re on that page. I’ve figured out how to do this by editing the style.css of my custom theme, and adding a style for “current-menu-item” (if that class is common to most themes).
These main pages have a left navigation bar of some sub pages. The problem is, when a user clicks a sub page of one of the main pages, the top reverts to an unselected state.
I’m hoping someone will be able to tell me places to look in my theme, or some other possibilities to extend this “current-menu-item” selection even if I click sub pages.
Thanks,
–Michael
The topic ‘Keep main nav "selected" when viewing sub pages.’ is closed to new replies.