I want to change the default WordPress sub-menu unordered list (ul) to an ordered list (ol) to something like this:
<ul class="sub-menu"></ul> to <ol class="sub-menu"></ol>
I know I can do this with JQuery, but I will prefer a non-JavaScript solution.
I can change the parent elements using items_wrap in wp_nav_menu, but that wouldn't change the sub-menu.
I look forward to your suggestions.
I found a solution using Walker Menu
Add 'walker' => new Child_Wrap() to your
wp_nav_menucode in the header.php file like this:Credit: Inserting a div into wp_nav_menu