assigning current_page_item class to single post links in navigation
-
I have a secondary sidebar navigation on my site that is a combination of posts and pages. I have my css for current_page_item and it works great when you are on one of the pages, but it does not work if you are on one of the single post pages.
I know I should be able to write a function so that I can assign the current_page_item class to the single post links in the navigation as well. I have found some resources for doing this with custom post types; however, I am not using custom post types and I was unable to hack those solutions and get them to work for me.
I am sure I missing something very simple and obvious to do this, but I have spent all day going down the rabbit hole of links and forum posts, so any help would be greatly appreciated.
- The topic ‘assigning current_page_item class to single post links in navigation’ is closed to new replies.