You can completely write that by Javascript, using a jQUery lightbox plugin, follow these step:
- add a “hidden” link to your page, when its “click” event is fired, that will pops your form (we’ll make the fake click event later)
- create HTML markup for the popup form
- enqueue jQuery lightbox plugin (you may choose Colorbox, Thickbox, PrettyPhoto, etc.)
- enqueue jQuery cookie plugin (for prevent the popup on every page load, we just want to show it when user first go to the page)
- enqueue your custom script
In the custom script, you should:
- make a fake click event to your “hidden” link, like this:
$('#popup-link').click();
- set a cookie for your user, maybe 1 day
The Popup Dominition is a bit more complicated. It does exactly the same thing but has option to allow us to show popups after some impressions. It also has some more built-in styles for the popup form.