Page 1 of 1

How to open a lightbox popup in WordPress on click

Posted: Sat Apr 05, 2025 6:47 am
by testyedits
Last updated onJanuary 10th, 2024by Editorial Team
FacebookTweetLinkedInPinShares0
How to open a lightbox popup on click
Want to open a lightbox popup with the click of a button on your website? Lightbox popups can help you generate more targeted leads and grow your email list.

If you make the pop-up open when the user clicks a button, you can prompt them to sign up for your newsletter, download an eBook or report, and get coupons or discounts.

In this tutorial, we'll show you how to easily create lightbox popups that open on click to increase your subscribers and get more leads.

Creating WordPress Lightbox Popups on Click the Right Way
Pop-ups can be a great way to drive conversions and help grow your business faster than many other methods.

One of the most effective ways to display your pop-up is to let user behavior trigger it. For example, you could create a pop-up that opens when a button is clicked, like in the example below:

OptinMonster popup on click in WordPress menu
This way, the user is not bombarded with a pop-up, but only sees it when they rich people database show interest.

These popups work well if used correctly. You might want to see how CodeinWP increased conversions by 1000% using one-click popups.

They were able to do this because they created a great campaign that appeared where users were most likely to be interested in the pop-up.

They customized their pop-ups, used split testing to see what worked and what didn’t, and made data-driven decisions. As a result, they saw great success.

The best part is that creating a pop-up that opens on click is easier than you might think. It doesn’t even require any coding skills or technical knowledge!

The truth is, anyone can easily create a successful popup campaign in just a few minutes using OptinMonster :

optinmonster homepage-min
OptinMonster is by far the best lead generation plugin on the market that makes it easy to create powerful popup campaigns. And it’s the easiest way to create a popup that appears on button click.

In short, OptinMonster is your best bet for growing your email list, reducing cart abandonment, and improving website conversions.

Just like CodeinWP, there are many other OptinMonster success stories that you can check out.

Now, let’s look at exactly how you can create your own lightbox popup that opens on click using OptinMonster.