Hi,
I have the following menu setup that basically has a parent menu of "Products" with two child menu items that I am using inside my WordPress 3 menu structure, specifically inside my sidebar.php file:
<ul id="themenu" class="sf-menu sf-vertical">
<li><a class="sf-with-ul topm" href="#">Products</a>
<li><a href="information">Information</a></li>
<li><a href="parts">Parts</a></li>
</li>
</ul>
What I am unsure how to do using PHP is when a user clicks on either of the child menu options, i.e."Information or Parts", I would like to add a css class of currentMenu to it's parent menu class, i.e.:
<li><a class="sf-with-ul topm currentMenu" href="#">Products</a>
Would appreciate your help on this.
Thanks.