[Resolved] JS conflict

Home Forums Support [Resolved] JS conflict

Home Forums Support JS conflict

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #156206
    I.S.

    Hi,

    At the bottom of js/navigation.js is the function:
    jQuery( '.dropdown-toggle' ).click ...

    The class “dropdown-toggle” is a somewhat common class used in other plugins, such as DWQA, which is creating conflicts/unexpected behavior.

    Could the selector be made more specific? I believe “.main-navigation .dropdown-toggle” should work just fine.

    Thanks in advance!

    #156213
    Tom
    Lead Developer
    Lead Developer

    Tough one, as the Secondary Nav uses the same snippet of code and doesn’t have the .main-navigation class.

    I’ll find something common between the two and get it implemented into the next version πŸ™‚

    Thanks!

    #157203
    Tom
    Lead Developer
    Lead Developer

    Alright, I ended up just using: nav .dropdown-toggle.

    This works on all of our nav elements, and shouldn’t cause issues with other plugins unless they’re adding their own navigation elements.

    Let me know πŸ™‚

    #157526
    I.S.

    Excellent! Many thanks!

    #157559
    Tom
    Lead Developer
    Lead Developer

    No problem! Thanks for bringing it to my attention πŸ™‚

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.