Popup opening
Popup opening
You can open the popup by clicking on any HTML element containing one of the following CSS classes.
sw-open-loginTo open login popupsw-open-registerTo open register popupsw-open-forgot-passwordTo open forgot password popup
Note: all the classes open logout popup if the user is logged in.
Example: <div class=”sw-open-login”>Open Popup</div>
Simple!
Open by querystring paramenter
Additionally you can automatically open the popup by adding the querystring parameter swal= to the URL (this option must be enabled on Advanced settings).
Click on these links to reload this page, the popups will automatically open.
- Login popup: https://www.ajaxlogin.com/docs/plugin-documentation/popup-opening/?swal=login
- Register popup: https://www.ajaxlogin.com/docs/plugin-documentation/popup-opening/?swal=register
- Lost password: https://www.ajaxlogin.com/docs/plugin-documentation/popup-opening/?swal=lostpassword
Read more about ajaxlogin
