---
title: "AJAX Login Modals: Triggers"
description: "## Overview The AJAX Login Modals (ALM) plugin extension adds 2 more triggers to Popup Maker: - **Force Login** - **Click Blocking** ALM also extends **Click Open**triggers to automatically support launching popups for: - Login forms - Registration forms - Password…"
url: "https://wppopupmaker.com/docs/ajax-login-modals/triggers-2/"
updated: "2025-01-29"
category: Extensions / AJAX Login Modals
---

# AJAX Login Modals: Triggers

## Overview

The AJAX Login Modals (ALM) plugin extension adds 2 more triggers to Popup Maker:

- **Force Login**
- **Click Blocking**

ALM also extends **Click Open**triggers to automatically support launching popups for:

- Login forms
- Registration forms
- Password recovery forms

This help guide describes the ALM triggers and how you can use them. 

## Force Login Trigger

![Force Login Trigger](https://s3.amazonaws.com/helpscout.net/docs/assets/559c68b9e4b03e788eda1692/images/5c0849862c7d3a31944ec896/file-UUJZ8plwze.png)

The **Force Login**trigger automatically opens a login popup when a visitor lands on your site. The popup **Close** button is removed, which forces visitors to log in before they can access any site content.  

By default, the popup *will display on all site pages and posts*. To limit the popup display to *specific pages or posts*, you can set up targeting conditions under **Popup Settings** > **Targeting**. See the following related article for details on how to set targeting conditions.

**Related article:** ['Targeting' option settings](https://wppopupmaker.com/docs/controlling-popups/popup-settings-box-targeting-option-settings/)

> Provide added security on sites that contain sensitive personal data with the [Secure Idle User Logout ( SUIL ) plugin extension](https://wppopupmaker.com/extensions/secure-idle-user-logout/). The SIUL plugin sets a timer to automatically log out inactive site visitors. It can be used with the AJAX Login Modals plugin to allow a visitor to log back in.

[https://wppopupmaker.com/extensions/secure-idle-user-logout/](https://wppopupmaker.com/extensions/secure-idle-user-logout/)

## Click Blocking Trigger

![Click Blocking Trigger](https://s3.amazonaws.com/helpscout.net/docs/assets/559c68b9e4b03e788eda1692/images/5c084bd32c7d3a31944ec8b9/file-UEoeK9ldgS.png)

The **Click Blocking** trigger functions the exact same way as our [Click Open Trigger](https://wppopupmaker.com/docs/triggering-popups/trigger-click-open-overview-methods/), including the five available 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 *content-based* popup.

Once logged in, the user will be forwarded to the action the link is attached to, whether a file download, hyperlink, etc.

The visitor has the option of logging in, registering, recovering their password, or closing the popup. The close button remains visible and usable in a login popup. The user won’t be able to access the site content behind the popup without logging in.

**Popup Pro Tip**: Make sure to [set a cookie on Login/Registration Successful](https://wppopupmaker.com/docs/ajax-login-modals/ajax-login-modal-cookie-creation-events/) so your visitors aren’t continuously spammed by your Click Blocking popup!

## Modified *Click Open* Trigger

![Modified Click Open Trigger](https://s3.amazonaws.com/helpscout.net/docs/assets/559c68b9e4b03e788eda1692/images/5c06e67e04286304a71cfd0f/file-KizKkxyyFp.png)

The [Click Open trigger](https://wppopupmaker.com/docs/triggering-popups/trigger-click-open-overview-methods/) is one of the three default triggers included with the free version of Popup Maker. The ALM plugin extends the **Click Open**trigger to display AJAX-enabled popups for site login, registration, and password recovery. 

### Targeting WordPress Links

When selected, each of the checkboxes in the *Click Trigger Settings* box targets a login, registration, or password recovery link to display an AJAX-enabled popup instead. Targeted links are typically located in a navigation menu, sidebar, or footer area, and follow a URL pattern defined by WordPress. 

| **Link Function** | **URL Pattern** |
| --- | --- |
| *Login* | http(s)://{site-url}/wp-login.php |
| *Registration* | http(s)://{site-url}/wp-login.php?action=register |
| *Password Recovery* | http(s)://{site-url}/wp-login.php?action=lostpassword |

For example, when the checkbox above labeled  *Login* is selected, every link that contains the *Login* URL pattern will automatically trigger an ALM Login popup. No additional triggers are required. 

![Menu Structure](https://s3.amazonaws.com/helpscout.net/docs/assets/559c68b9e4b03e788eda1692/images/5c06f06904286304a71cfd6d/file-7tFgp5O3Fa.png)

In the screenshot above, a custom navigation link named  *Login* is added to a site menu. When the *Login* link is targeted by a *Click Open* trigger, the navigation* *link will display a popup on click instead of the default WordPress login page. 

> ALM also works seamlessly with [the User Menus plugin](https://wordpress.org/plugins/user-menus/) to add Login and Logout elements to site navigation menus. The plugin allows users to dynamically change the visibility of navigation menu items depending on a visitor's login status. 
