• Resolved dwpro

    (@dwpro)


    Hi!
    Clicking on the hamburger icon does not open the side menu, but is following the # link.
    Any idea, why?
    Kind regards,
    Gerald

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Oliver Campion

    (@domainsupport)

    Hello Gerald,

    You’ve disabled the right click on that development site but … inspecting the site doesn’t actually shed any light on the problem!

    As this is a development site, would you please turn off all plugins and switch to a default theme like Twenty Seventeen to rule out your theme and / or a plugin causing the issue?

    If you can please identify if the problem is caused by the theme or a particular plugin we will be able to look into this further for you.

    Looking deeper, it would appear that the JavaScript is being run but the click event is being disabled somehow … I wonder if your script that’s disabling the right click is doing anything odd to other click events?

    Oliver

    Thread Starter dwpro

    (@dwpro)

    Hi!
    Using i.e. the TwentyTwenty theme the click is handled alright.
    Using my own theme the problem arises (I do not know how to disable the right click prevention in that theme).
    After a lot of testing I found out:
    When I bind the click event not to ‘.open_sidemenu>a’ but just to ‘.open_sidemenu’ the click event is handled.

    • This reply was modified 6 years, 2 months ago by dwpro.
    • This reply was modified 6 years, 2 months ago by dwpro.
    • This reply was modified 6 years, 2 months ago by dwpro.
    • This reply was modified 6 years, 2 months ago by dwpro.
    • This reply was modified 6 years, 2 months ago by dwpro.
    Plugin Author Oliver Campion

    (@domainsupport)

    You have a lot of Event Listeners on anchor links one of which is breaking the event listener we put in for ‘.open_sidemenu>a’.

    Now I know that it’s definitely one of your scripts that is breaking the event listener, I can test to find out which one it is. Unfortunately, though, you will need to put the original sidemenu plugin back as it was. Also your site seems to have changed and now doesn’t have the menu that I was just looking at.

    The reason it works when you change it to ‘.open_sidemenu’ is probably because whatever script is breaking the event listeners is only breaking event listeners for anchor link clicks, not ‘li’ tag clicks.

    Please restore the plugin and menu to the way it was before and I will inspect the event listeners and find the culprit script and hopefully a work around.

    Oliver

    Thread Starter dwpro

    (@dwpro)

    Hi again!
    You are totally right – I found the bug in my custom script *shame on me*.
    Thank you for taking time.
    Kind regards,
    Gerald

    Plugin Author Oliver Campion

    (@domainsupport)

    OK, that’s good news (for me 🙂 ). Glad to help.

    Oliver

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘SideMenu does not open’ is closed to new replies.