• Resolved johnnyenglish14

    (@johnnyenglish14)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter johnnyenglish14

    (@johnnyenglish14)

    Nevermind I’m dumb.
    All I had to do was change the # to a . in the element selector (so “.login-user”) and there we go. I didn’t realise the . was the css thing since I don’t really know much about css until I just saw a video.
    Anyway hope this helps someone else.

    Plugin Contributor George

    (@rubeushagrid13)

    Hi johnnyenglish14,

    I’m glad to hear that you’ve solved the issue, if you’ll need further help contact us again.

    Kind regards,
    George

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can I get modal popup from menu click?’ is closed to new replies.