How to Open a WordPress Popup Form On Click of Link or Image - AmazoUpdates

Breaking

Tuesday, February 21, 2023

How to Open a WordPress Popup Form On Click of Link or Image

Do you want to create a popup that appears when visitors click on a link or an image on your site?

This is a proven way to grow your email list. It is more effective since it starts with an action taken by a user. Popular sites often use it to offer an optin incentive to get even more subscribers.

In this article, we’ll show how to open a WordPress popup on click of a link or an image, step by step.

How to Open a WordPress Popup Form on Click of Link or Image

What Is an ‘On Click’ Popup Form?

On-click popup forms are lightbox popups that open when a user clicks on a link, button, or image on your WordPress website.

Normally, popups appear on websites when a user arrives or when they are about to leave. On-click popup forms are triggered by user interaction.

We also use on-click popups on WPBeginner to grow our email list. For instance, a popup will appear when a user clicks the email icon in the sidebar next to all social icons.

On click popup preview

Why Are On-Click Popup Forms So Effective?

On-click popup form is effective because it uses the powerful Zeigarnik effect. This is a psychological principle that states users who start an action themselves are more likely to finish it.

When someone clicks a link or button to trigger your popup, they’ve already shown interest. When the form popup appears, they’ll be more likely to use it.

For example, you can use an on-click popup to offer a lead magnet. This could be a free downloadable resource like an ebook or PDF file that users can get in exchange for their email address.

However, there are other ways to use on-click popups on your website. For instance, you can ask users to claim a coupon code, learn more about a product, fill-out surveys, and more.

That being said, let’s take a look at how to easily make an on-click lightbox popup for your website.

Creating an On-Click Popup in WordPress

The easiest way to create an on-click popup is by using OptinMonster. It is the popup plugin for WordPress and lead generation software.

First, you’ll need to sign up for an OptinMonster account. You’ll need the Pro account (or higher) because it includes the MonsterLinks™ feature that lets you create on-click popups.

Simply visit the OptinMonster website and click the ‘Get OptinMonster Now’ button to get started.

OptinMonster

Next, you need to install and activate the OptinMonster plugin on your WordPress website. For help, see our step-by-step guide on how to install a WordPress plugin.

This lets you connect your OptinMonster account to your WordPress site.

Once you’ve activated the plugin, you’ll need to connect your account. You should be taken to the Welcome page automatically in your WordPress dashboard.

Go ahead and click the ‘Connect Your Existing Account’ button.

Connect your existing account

After that, a new window will open.

You can click the ‘Connect to WordPress’ button to add your site to OptinMonster.

Connect OptinMonster to WordPress

Once you’ve connected your OptinMonster account to your WordPress site, you can create your on-click popup.

Simply go to OptinMonster » Campaigns from your WordPress dashboard and click the ‘Create Your First Campaign’ button.

Create your first campaign

You’ll be taken straight to the OptinMonster website.

The Campaign Type should already be set to Popup. If not, just click on Popup to select it. Next, you’ll need to choose a campaign template.

Choose a campaign type and template

You’ll be able to modify the template exactly how this looks later. We’re going to use the ‘Basic’ template for this tutorial.

Simply run your cursor over the template and click the ‘Use Template’ button.

Select the basic template

Now, you’ll be prompted to enter a name for your campaign. This is just for you. The users will not see it.

Simply enter a name and click the ‘Start Building’ to create your popup.

Enter a name for your campaign

OptinMonster will automatically load up the template in the drag-and-drop campaign builder.

You can edit the default text and add or remove elements from your template. Simply drag blocks from the menu on your left and drop them on the template.

Add blocks to onclick campaign

You can also remove any element in the form by clicking on it and using the menu options to the left. For instance, we will remove the ‘Name’ field from the form.

First, you’ll need to click on the ‘Optin’ tab at the bottom of the screen. After that, click on the field to select it, and you’ll see the available options in the left column, including the option to remove it.

Delete name field

Once you have designed the popup, the next step is to design the Success view, which people see after filling out the form.

Simply switch to the ‘Success’ view at the top of the screen.

Edit the success view for onclick popup

You can edit the success view just like you edited the optin view. For instance, you may want to change the text or include a link to download a lead magnet.

Connecting Your Popup to Your Email List

Once you’re happy with your popup, click on the Integrations tab at the top of the screen. You’ll need to link OptinMonster to your email marketing service so that you can add people to your email list.

From here, click the ‘+ Add New Integration’ button on the left-hand side of the screen.

Add an email marketing tool

Next, you can select your email provider from the dropdown list.

From here, simply follow the instructions to connect it to OptinMonster.

Select your email provider

Setting Your Popup to Appear On Click

Now, you need to configure your popup to appear when the user clicks a link.

Go ahead and click on the Display Rules tab at the top of the screen.

Select display rules

The default display rule set by OptinMonster is ‘time on page.’ This means that the default pop-up will appear after the user has been looking at that page for a certain amount of time.

However, you can click the dropdown and select the ‘MonsterLink™’ (On Click)’ option instead.

Select MonsterLink display rule

After that, you should see your MonsterLink™ in the display rules.

You can click the button to copy your MonsterLink™ Code. You’ll need this in a moment.

Copy the MonsterLink

Making Your On-Click Popup Live

Next, you can go to the ‘Published’ tab at the top of the page and change your campaign’s status from ‘Draft’ to ‘Publish.’

Publish your on click campaign

Once you’ve done that, click the ‘Save’ button at the top of the screen and close the campaign builder.

Next, you’ll see the ‘WordPress Output Settings’ for your campaign. You can click the ‘Status’ dropdown menu and change it from ‘Pending’ to ‘Published.’ When that’s done, click the ‘Save Changes’ button.

Change status from pending to published

Adding Your MonsterLink to Your WordPress Website

Now, you need to add the special MonsterLink™ to your site. If you didn’t copy this earlier, you can get it by going back to the ‘Display Rules’ setting for your campaign.

First, you’ll need to create a new post or page, or edit the one where you want to add your link.

The MonsterLink™ is HTML code, so you need to paste it into a custom HTML block.

When you’re in the WordPress content editor, click the (+) button to add a Custom HTML block.

Add a Custom HTML Block to Your Page

Now, copy your MonsterLink™ into that block. It should look something like this:

<a href="https://app.monstercampaigns.com/c/mcqdabfqzia6zdiosiz0/" target="_blank" rel="noopener noreferrer">Subscribe Now!</a>

You can change the words ‘Subscribe Now!’ to whatever text you want to use for your link.

Enter the MonsterLink Code

Once you’ve placed the link, you can preview your page or post to ensure it’s working.

Here’s our link in action. Note we’ve applied some styling to the text to create a box with larger text to help promote the lead magnet:

On click popup preview

Tip: You’re not limited to just text links using MonsterLinks™. You can also use MonsterLink with call-to-action buttons, images, banners, or navigation menus on your website.

We hope this tutorial helped you learn how to trigger a WordPress popup form on click. You may also want to see our tutorial on how to speed up your WordPress site and our ultimate WordPress SEO guide.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Open a WordPress Popup Form On Click of Link or Image first appeared on WPBeginner.

No comments:

Post a Comment