How can I get modal popup from menu click?
-
Hi I’m trying to do a modal popup for login/register stuff that way I can get rid of the actual pages and allow it to happen on whatever page the user is on.
So I’m wanting it to work with a menu item click.
My attempt was to use the css classes option (called it “login-user”) in the Appearance>Menu part where the menu item is a custom link and just adds a “#login” to the url. I then set that into the open popup custom triggers and made the element selector “#login-user”.
Unfortunately that did not work as you might guess.
Is there a way to get this to work with the actual menus rather than a custom button without the page reloading?
I tested with using the url and changed the “#login” to “?login” and that works checking for url keywords it but that reloads the page so not ideal (and only works on page reload). If that could work without the page reloading then I’m fine with that.Any help appreciated.
- The topic ‘How can I get modal popup from menu click?’ is closed to new replies.