Is there a simple hook/filter-based approach to doing this, or am I going to have to bite the bullet and learn regex and rewrite a part of the roots menu walker?
I seem to be having a little trouble getting these changes to be applied. I’ve tried inserting the snippet you gave me into both custom.php and nav.php with no luck. What am I missing here?
With the above method, the parent item is non-clickable since it expects to open the submenu with a toggle. How can I fix this?
Another thing I would like to achieve is to display the submenu as a standalone 2nd menu, outside of the main <ul> and active <li> and only on the active page. What is the easiest way to accomplish this?
If you’re moving a submenu outside the current element then it’s not really a submenu anymore. Why not just create it with a second call to wp_nav_menu using a second level only walker?
I’ve used Christian Varga’s solution in other non sage built sites, but I’m having issues with it working while using wp_boostrap_navwalker and soil plugin. Were you able to get his solution to work? I need to dig in a bit more but was hoping for some advice.
Yeah I got it working, but that also was in the non-sage time (roots version) where the wp_boostrap_navwalker was still default so haven’t tested it yet in the Sage versions.
yea, i can’t seem to get it working with sage. Maybe due to how soil cleans up the menu? I wondering if i’m over thinking it or if there is an easy solution for pulling either sub menu children from wp menu or even children of pages? Sill navigation my way around using sage