Sorry to dig up an old post, but I’m just wondering how to adapt this code to work with two navigations? For example, a header and footer.
In its current form, a website ends up with duplicate IDs if there is more than once instance of a navigation with similar links (even if it is a different menu). Is there a way we can tell it to change ‘nav-‘ to ‘nav2-‘, ‘nav3-‘ and so on?
Thanks!