I am working with Wordpress and the wp_nav_menu
function. I have built a sample menu in the Wordpress backend like such:
- Menu Item 1
- Menu Item 2
- Sub Menu Item
- Menu Item 3
I would like for the submenu to only show when on the parent or parent's child's pages.
I am unsure of how do go about this. I think CSS/jquery would do, but I will take any solutions.
Here is the page I am working on currently.
EDIT: Sorry for the confusion - I do not want a rollover menu, I want it to be static. When I am on a parent page, I want the submenu (child) to show. When I am not on a parent page, I do not want the child links to show.