Well, than we have a problem with the structure and/or the usability of that menu. The question is: What do you want to achieve? What should happen when clicking the Capital Campaign menu item? Obviously (now) is that the content of that document should be shown, then the menu should stay open. Well, this would be standard... you don`t need javascript at all for that. Try this call:
[!Wayfinder?startId=`1` &rowTpl=`menu_row_tpl` &hideSubMenus=`true` &parentRowTpl=`menu_parent_row_tpl` &parentRowHereTpl=`menu_parent_row_here_tpl` &rowIdPrefix=`p`!]
menu_row_tpl like yesterday.
menu_parent_row_tpl:
<li[+wf.id+] class="closed [+wf.classnames+]">
<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
menu_parent_row_here_tpl (NEW!)
<li[+wf.id+] class="open [+wf.classnames+]">
<a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>
[+wf.wrapper+]
</li>
One note: This only looks so complicated because I want to include your already used classes from your javascript menu. You don’t need the script anymore, but the styling still remains.