Hi,
I got a custom modal dialog (DIV container, position “fixed”, centered in the middle of the browser viewport) as login window that is show or hidden via JavaScript. The corresponding hyperlink “Login” which opens the modal dialog via JavaScript is located in the main menu. So far, everything works fine.
Only when the menu is displayed as mobile menu, clicking on “Login” just closes the mobile menu, but does not show the modal dialog.
I don’t know how to resolve this. Can you please help?
Thanks!
Hey Simon!
Can you post the link to your website? We do not support custom codes but we would gladly take a quick look.
Best regards,
Yigit
Hi!
Thank you for the info.
Try to change the script with this:
jQuery(window).load(function(){
// Find pseudo hyperlinks in DOM & assign corresponding JavaScript functionality
jQuery('#menu-item-3347 a').click(function(e){
e.preventDefault();
alert('Testlink clicked.');
});
});
Cheers!
Ismael