In order to make use of a particular jQuery menu in WordPress, I need the child UL (dropdown part of the menu) to have a selector added to it (third line, below):
<ul class="dropdown">
<li>the first list item
<ul class="sub_nav">
<li>child list item</li>
</ul>
</li>
</ul>
Note: I left out the link code for greater clarity.
I'm not a coder. My PHP and javascript skills are of the copy-paste-tinker variety. Other forums have yielded lots of vague suggestions, but no solutions. I'm open to other solutions, but I'd like to solve it in one of two places:
Modify <#?php wp_list_pages('title_li=&depth=2'); ?> in the theme header.php file
[had to add # to code bit to make it show up]Add a function in the theme functions.php file