---
title: "How to close WordPress Popup with the Esc button or by clicking outside?"
url: https://nexterwp.com/docs/close-popup-with-esc-or-clicking-outside/
date: 2023-02-06
modified: 2026-04-15
author: "Aditya Sharma"
description: "Creating a great user experience on your WordPress website is essential to engaging your visitors and keeping them coming back. Popups can be an effective way to deliver important messages..."
image: https://nexterwp.com/wp-content/uploads/2024/05/close-popup-with-esc-or-clicking-outside-1024x519.jpg
word_count: 216
---

# How to close WordPress Popup with the Esc button or by clicking outside?

## Key Takeaways

- Nexter Blocks Popup Builder lets users close a popup with the Esc button by turning on Extra Options > Esc Button Close Content.
- Nexter Blocks Popup Builder lets users close a popup by clicking outside it through Extra Options > Outer Click Close Content.
- Nexter Blocks Popup Builder supports turning on both close options or only one, depending on requirements.

Creating a great user experience on your WordPress website is essential to engaging your visitors and keeping them coming back. Popups can be an effective way to deliver important messages and draw attention to specific features of your site. However, it is essential to ensure that visitors can easily close these popups when they are no longer needed.

*To check the complete feature overview documentation of the Nexter Blocks Popup* Builder block, [click here](https://nexterwp.com/docs/add-popup-builder-in-wordpress/).

***Requirement  - This block is a part of the Nexter Blocks***, make sure its installed & activated to enjoy all its powers.

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/builder/wordpress-popup-builder/)

Our Popup Builder has multiple options that you can offer to your users to easily close the popup.

Users can use the Esc button to close the popup, for this, add the block on the page, after choosing the appropriate popup type and adding the content go to **Extra Options** > **Esc Button Close Content** and turn on the toggle.

![](https://nexterwp.com/wp-content/uploads/2023/02/pop-up-builder-esc-button-close-content.png)

You can also allow users to close the popup by clicking outside the popup for this go to **Extra Options** > **Outer Click Close Content** and turn on the toggle.

![](https://nexterwp.com/wp-content/uploads/2023/02/pop-up-builder-outer-click-close-content.png)

Now depending on your requirements you can turn on both options or any one of them.

Also learn [how to limit popup by user sessions in WordPress](https://nexterwp.com/docs/popup-once-per-website-session/).