Contact form 7 in popup window – WordPress Tutorial

In this short tutorial i will explain how you can have your WordPress contact form 7 show in a popup window.

Almost every website has some sort of call to action button or contact form. Having cool contact forms is always more productive and eye-catching. Placing your contact form in a right position is sometimes crucial for generating leads.

But what happens if you don’t have enough space to show your cool form? Is it worth it having it only on the “contact page” ?  The answer is NO.

You should have your call to action as eye-poking as you can. If you have trouble finding a perfect spot for that unique and fancy form  of yours, than putting it in popup window is a great solution.
notice * >>> It will work even if your form is not unique and fancy.

[quote]Hey i am not that good with jQuery. Is there an easy way to put my contact form in a popup window? [/quote]

Yes there is and ill be happy to share it with you, in return all you have to do is become a member of my religious chicken cult and give me all of your possessions ! I am not joking !!! read on.. 🙂

For the purpose of this tutorial we will need two wordpress plugins.

One of the favorite plugins for creating those cool forms in WordPress is ” Contact form 7

Contact form 7

You can download it here: Contact Form 7 Download

Its been downloaded more than 16.000.000 times to this date. If you however prefer some other plugin for your forms, that will work as well.

Second plugin that we need is called ” Easy fancy box “


easy fancy box

You can download it here: Easy Fancy Box

This one will take care of our jQuery problem.

Now lets put that form in that popup !

Once you have both of them plugins installed and activated, go on and create your form the usual way. Every plugin out there gives you some sort of

[shortcode] that you can insert inside your page or widget. That is all we need.

Once you have your form created you should have a shortcode that looks something like this

 [contact-form-7 id="2860" title="Contact form 1"]

Now you should wrap it up in the code below :

 <a class="fancybox" href="#contact_form_pop">Contact Us</a>
<div class="fancybox-hidden" style="display: none;">

<div id="contact_form_pop">[your own shortcode here]</div>


</div>

this is what you will get :

Contact Us

and that’s it, this will show a text link that will open up your contact form on click as a popup window, replace the shortcode and the text of the link to suit your needs.

Contact form in popup windows – Solved

If you liked this article say thanks by sharing it around, that makes me happy. Cheers.

Get in Touch

Nikola fivera Petrovic

Hi there. My name is Nikola,
I speak English, Greek and Serbian.
As a Web Producer i can deal with almost anything web design & development related.

Web Design Skills

I have been into web design for the last 10+ years.
After working for various agencies and companies I have decided to take a lone wolf path as a Freelancer but I still actively collaborate with agencies across the globe.
I enjoy building websites on WordPress platform but i can work on any other platforms as well.

SEO Skills

I have spent a last couple of years as an SEO executive and SEO consultant working on 4 continents.
Specialized in on-page SEO I wear a pointy Google-Wizard White-Hat and help various small and medium-sized businesses rank well in the search engines.
I enjoy working with Google and Yahoo SE.
Feel free to request a free meeting bellow.
As a freelancer, I charge only a small portion of the money you would pay to agencies to get your project done.
Nikola fivera Petrovic
Get in Touch