I have a calendar called Event Organizer that I have been customizing: http://joshrodg.com/open/calendar/. You'll notice if you click on one of the blue events you are redirected to a page that looks like: http://joshrodg.com/open/calendar/event/pastor-bible-study/.
Right now, when someone goes to that page nothing in the navigation bar is highlighted, but I'd like the navigation item Calendar to be highlighted. I am using wp_list_pages
to create my navigation.
I think I've seen something like this before, but I'm not sure what I'm after. Basically, the child page of the the Calendar page would highlight the main page Calendar in the navigation bar when you are on that page.
I thought that would involve styling li.current_page_ancestor
, but that doesn't seem to do anything.
I don't know if it's easier to add this functionality for all child pages for any main navigation item (i.e. Home, About, Ministries, Calendar, Location, Contact), but that would work to.
Anyone have any ideas?
Thanks, Josh
body_class
for the body tag to identify when you're viewing an event.