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)
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
OK, that’s good news (for me 🙂 ). Glad to help.
Oliver