Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tylercollier

    (@tylercollier)

    In case anyone else, here it is. This code depends on jQuery. Replace the “.myclass” part with the selector for your DOM element(s).

    $(document).on("click", ".myclass", function(e) {
      e.preventDefault();
      var target = $('.lwa').data('modal');
      target.reveal({
        modalbgclass: 'lwa-modal-bg',
        dismissmodalclass: 'lwa-modal-close'
      });
    });

    What does this code do, exactly?
    I am looking for a replacement for WP Modal Login since it is broken as of WP 3.8 and appears to be no longer supported?

    Thx,
    Jeff

    Thread Starter tylercollier

    (@tylercollier)

    This code launches/shows the Login With Ajax modal login form. You must have the Login With Ajax plugin installed, and you must have set up the Login With Ajax widget (or shortcode) to use the modal template. Then by using the code above, you can have any button or link on your site launch the widget, which can be placed on a more prominent call-to-action.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I launch the modal login form?’ is closed to new replies.