The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Magic Line on Dropdown

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #177437

    Hi all,

    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.

    Here’s my example:

    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.

    Thanks in advance.


    It worked! Thanks a lot!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.