Is there a way I can give each wordpress children (subcategory UL lists) unique ID's? I'm creating a dropdown list for subcategories and I want to position them but
:nth-child isn't supported by everything yet.
as far as I know, all menu items already have unique ID´s ("menu-item-XX"), may they be first or second level. the UL itself has a different class :
EDIT I I forgot to mention that one can also add classes in the menu editor itself on item base , and also the has class arguments..Not to mention the fact that you can create 2 custom-menus wih your name*
EDIT II If you really want a custom function (everyone these days wants one..) than this one will add a class to each menu item which is equal to the menu title.
.. But I still stand by my first answer that in 98% of the cases - it is an unnecessary overkill ..
Edit III - since you are unable to implement none of the above ways to solution (all valid) - Here is The jQuery way :