AJAX Login Modal Triggers
After installing the AJAX Login Modals Extension, you will be granted access to a number of different triggers you can use in conjunction with our login modals. In this doc, we’re going to review each of these triggers, their settings, and features.
Click Open Trigger
The Click Open Trigger is a default trigger offered in the free version of Popup Maker. If you’re not familiar with how to use the Click Open Trigger, check out our Click Trigger doc that explains the process of setting up your first click trigger.
Upon installing the AJAX Login Modals Extension, some additional targeting options will appear under the General tab of the Click Trigger Settings menu, as seen in the screenshot below (eg. Target Which WordPress Links?):
Popup Pro Tip: To easily add these links to your site, we recommend using the User Menus Plugin. You can even use AJAX Login Modals click triggers with User Menus Plugin to dynamically change your menus when users login or logout of your site!
Targeting WordPress Links
You can target specific WordPress links automatically to trigger your login modals. This means that if you check the Login box as pictured above, then every Login link on your site will automatically be targeted to trigger the Login popup without having to manually attach a trigger.
The standard WordPress Login Link is “www.yourwebsite.com/wp-login.php” - anywhere this link appears on your site will automatically be targeted to trigger a popup if you enable this targeting setting.
The standard WordPress Register Link is “www.yourwebsite.com/wp-login.php?action=register” - anywhere this link appears on your site will automatically be targeted to trigger a popup if you enable this targeting setting.
The standard WordPress Password Recovery Link is “www.yourwebsite.com/wp-login.php?action=lostpassword” - anywhere this link appears on your site will automatically be targeted to trigger a popup if you enable this targeting setting.
After installation of the AJAX Login Modals, you’ll have access to this trigger.
This trigger will automatically open your login popup when a user arrives on your whole site, or specified page(s)/post(s). The Forced Login Trigger forces users to login before they can proceed to the site content, therefore the close button will be disabled and removed.
Popup Pro Tip: You can force users to login on specific page(s)/post(s) using the Conditions Pane in the Popup Editor! Leaving your Conditions blank will force login on your entire site.
Popup Pro Tip #2: Want to keep your site and content secure at all times? Make sure your users are always logged out with Secure Idle User Logout.
Upon installing the AJAX Login Modals Extension, this trigger will be added to your trigger list.
The Click Blocking Trigger functions the exact same way as our Click Open Trigger, including the five different methods to trigger the popup, the only difference is that when a user clicks the targeted element, they will be presented with a login popup, instead of a traditional popup.
Once logged in, the user will be forwarded to the action the link is attached to, whether a file download, hyperlink, etc.
Since the user has the option of logging in, registering, or recovering their password, or just closing the popup, the close button is not removed or disabled. The user won’t be able to access whatever is behind the link, however, without logging in, respectively.
Popup Pro Tip: Make sure to set a cookie on Login/Registration Successful so your users aren’t continuously spammed by your Click Blocking popup!