Support » Themes and Templates » [Resolved] Custom menu – Child menus
5 years ago
I have a custom menu in a wordpress website.
To display the menu I use
<?php wp_nav_menu( array('menu' => 'side_nav' )); ?>
And the CSS looks like this:
[CSS moderated as per the Forum Rules. Please just post a link to your site.]
OK, looks good.
(You get it)
What I want to do is so when the parent (Link1/Link2) is CLICKED (not hovered) but clicked, so the “parent” link is active, only then will the sublinks to THAT “parent” show.
How do I do this?
Link 1 (active/clicked/on that page)
BTW, this pretty urgent. It’s for a client and deadline is tomorrow.
Is the first thing I came across for reference. Not what you are looking for I believe, but trying to pinpoint the terminology. I searched for ‘jquery vertical accordion menu click’
It’s going to have to be a jquery solution, there may be plugins…. or it may be code
Actually, that plugin may work rather well….. it seems to support your custom menus…..
Rev. Voodoo – thanks for the mention!
Correct that the accordion menu plugin should be able to handle the job