Using Different Walker Menu Classes for Header and Footer in WordPress
Different Walker menu output for the header and footer in WordPress Header and footer menus often need different markup: a dropdown with Bootstrap classes in the header, a flat list in the footer. If you already use a custom Walker_Nav_Menu, one Walker class can serve both, as long as it knows which menu location it…