Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to submit contact form 7 without page refresh in wordpress?

Hi I'm pretty new to contact form 7. I've seen on Youtube tutorials, that contact form 7 submits without page refresh. But when I install the plugin it's working with a page refresh.

Please advise on how to enable it to work without page refresh. Thanks.

like image 814
Bmax Avatar asked Feb 21 '17 09:02

Bmax


Video Answer


1 Answers

I found the fault, the issue was i haven't included the wp_head() and wp_footer() functions in my theme.

There's a page in contactform7 site on this:

https://contactform7.com/why-isnt-my-ajax-contact-form-working-correctly/

there they have mentioned the requirements for ajax to work.

like image 146
Bmax Avatar answered Oct 28 '22 07:10

Bmax