I’m using the magic line in one of my projects. It works perfectly except with some of the dropdown elements. When I click some dropdowns, it resets to the end of the page. Ideally I’d like to have it stay above the parent navigation.
It’s WordPress, so I can’t really create a code pen for it, but when you click the first dropdown row you’ll see what’s happening. I recently changed .current_page_item a to .current_page_item > a. Not sure if that’s why it’s not working.