---
title: "Shortcode: Popup Close"
description: "## Application  The Popup Close shortcode provides visitors with an alternative to a popup 'Close' button.  The shortcode is designed to simplify the creation of a new close button.  It cannot be used to redirect visitors to a remote URL via a…"
url: "https://wppopupmaker.com/docs/shortcodes/shortcode-popup-close/"
updated: "2024-12-23"
category: Using Popup Maker / Shortcodes
---

# Shortcode: Popup Close

## Application 

The Popup Close shortcode provides visitors with an alternative to a popup 'Close' button.  The shortcode is designed to simplify the creation of a new close button.  It cannot be used to redirect visitors to a remote URL via a link (either an internal or external URL to the site domain name). 

*To close a popup and redirect visitors to a remote URL, refer to the related article below. *

**Related article: ** [How To Close a Popup When a Link Inside the Popup Is Clicked](https://docs.wppopupmaker.com/article/303-how-to-close-a-popup-when-a-link-inside-the-popup-is-clicked)

[https://www.youtube.com/embed/NMjA4pAOckg?rel=0&enablejsapi=1](https://www.youtube.com/embed/NMjA4pAOckg?rel=0&enablejsapi=1)

### Example Use of the Popup Close Shortcode

Copy the following shortcode example (below the comments <!-- -->) and add it to the 'Text' tab of the Popup Editor. The content should be wrapped by the shortcode's opening and closing brackets ( for example,  ). 

```
<!--The 'tag' attribute is required.  Acceptable values include:
<!--'a', 'button', 'div', 'img', 'li', 'p', and 'span'.-->
<!--The 'classes' attribute is optional.-->
```

### 'Popup Close' Shortcode Attributes

The table below describes the set of attributes available within the 'Popup Close' shortcode.

| **Attribute** | **Usage ** | **Description** |
| --- | --- | --- |
| 'tag' | required | An HTML element that will wrap the shortcode content. By default, this field is empty. Acceptable values include: 'a', 'button', 'div', 'img', 'li', 'p', and 'span'.  |
| 'classes'  | optional | Additional CSS class attributes to add to the HTML element. Useful for targeting the style of the shortcode content. Set styles on the added class(es) from within your site's theme.  |
