current_page_parent displaying subnav of other items at 3rd level
-
Hello,
I recently updated my theme and my WP installation, so I am not sure which caused this problem, but it was working fine. Mainly, my side navigation used to display (top and sub-levels) and highlight appropriately (current page item), then it started doing this weird thing that when you clicked on a parent level, or a subnavigation menu item that was in a submenu already displayed, it reloaded the entire side menu again. To fix this I used the following code:
#left ul li ul{ display: none; }
#left li.current_page_parent ul { display: block !important;}This seemed to do the trick, and it does for the first and second levels of my side navigation, but when you drill down to the third level and below, all of the third level menus get displayed, even for items that are not currently active.
This code fixes that:
#left li.current_page_parent ul.children li.current_page_item { display: block !important;}But then you get the reloading of the entire menu again. If you look here you will see what I mean: http://arboretum.harvard.edu/library/image-collection/the-arnold-arboretum-captured-in-time-1982-1987-photographs-by-corliss-knapp-engle/
I hope this makes sense, and if anyone can help out I would really appreciate it, I am stuck.
Thanks!
Donna
- The topic ‘current_page_parent displaying subnav of other items at 3rd level’ is closed to new replies.