When I click on the Whatsapp button on my website it doesnt redirect to desktop whatsapp page but opens the Top Main menu instead. My website – anaximpex.whitepearldemo.com What could be the issue.
Thanks, Deepak
The page I need help with: [log in to see the link]
This usually happens because of something si wrong closed in the html. Almost always some link in the footer without closing, an <a href="..."> without the </a>.
The popup is opening correctly. I’m talking about the after you press the button “open chat” . When you click the button “open chat” the top menu opens up. I cleared my cache from my PC and also from wordpress admin panel. Can you try clicking on the button “open chat” and share the screenshot here.
I would recommend that you uninstall all plugins and check where the source of the problem is. It is clear that there is a conflict and that it causes a JS error. Sorry, the problem is not Joinchat.
The problem is on theme file https://anaximpex.whitepearldemo.com/wp-content/themes/law-firm-pro/assets/js/custom.js?ver=6.3, which is redefining the open() function which is a basic javascript function that Joinchat uses to open the link to WhatsApp.
To fix the problem edit that file and replace open with other e.g. menu_open at lines 29 and 30:
document.getElementById("open_nav").addEventListener("click", menu_open);
function menu_open() {