• Resolved Aleksandar

    (@jashimili)


    If I add custom button on custom location on the page (in .php template page), how do I open lwa modal with that button on click ?

    If button is this one:

    <a class="button iframe-login-link lwa-links-modal lwa-login-link lwa" >Ulogujte se</a>

    And I added shortcode to the same page template to display login form in modal.

    do_shortcode('[lwa template="modal"]');

    The shortcode output all of the content, the login form in modal. But I can’t figure out how do I trigger modal to display on click of a button?

  • The topic ‘How to open modal with custom button added on page’ is closed to new replies.