I registered my menu in functions.php, called it from header.php and set it all up in the Appearances > Menus backend. The problem is, I need to manually insert a div surrounding <ul class="sub-menu"> ... </ul> where my drop-down menu is.
There is no way around it like adding the div's class to the ul etc., as in order for it's drop-down functionality to work it must be inserted in that way, so that my code can be:
<div class="dropdown">
<ul class="sub-menu">
<li>
<a href="#">Menu Item</a>
</li>
</ul>
</div>
Is there any easy way to get that <div class="dropdown"> and </div> part in easily? Or would the only way be by writing a script?
Thank you!