Exit Modal

Categories

Component ID

2775329

Component name

Exit Modal

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

270

Component created

Component changed

Component body

Exit Modal provides a simple way to display a block as an exit popup modal. When a user makes a move to close the current browser tab, the modal appears. The content of the modal can be text or the contents of another block.

Bounce Convert also allows for the creation of exit popups but is limited to displaying Webforms, whereas this module can display any block content. This includes blocks provided by other modules. An example use-case for this module: placing a Mailchimp list sign-up form in an exit modal. If you're happy to use Webforms and need a some extra functionality, go with Bounce Convert, otherwise Exit Popup provides a quick and simple way to get those conversions!

Installation

  1. Download and unpack the Exit Modal module directory in your modules folder (this will usually be "sites/all/modules/").
  2. Go to "Administer" -> "Modules" and enable the Exit Modal module.

Dependencies

Just Colorbox.

Configuration

The module creates a new block called "Exit Modal" which can be configured through the blocks page: "Structure" -> "Blocks". You can choose to display custom markup or the contents of another block. Place the block just as you would any other block.

You can also display the block in its region as normal by ticking "Also show on page". Triggering the exit modal requires a certain user behaviour, which may not always happen. This option provides a backup.

You can control the appearance of the popup through the Colorbox settings: "Configuration" -> "Media" -> "Colorbox".

Troubleshooting

If the Exit Modal block does not appear, double check the visibility settings for the Exit Modal block. Also check the visibility settings and permissions for the target block, if you are using this option, as they will affect whether the block is displayed too.