WordPress & jQuery Contact Form without a Plugin
There are lots of WordPress plugins for contact forms, but wouldnâ€™t it be nice to have more control over the markup? In this tutorial, I am going to show how to use a custom page template to create a contact form in WordPress without a plugin.
Some people may want to skip the post and get to the demo and source files:
So, why not use a plugin?
Well, I think that a contact form is so simple that a WordPress plugin that doesnâ€™t provide exactly what I want is pretty lame. Plus, I donâ€™t need all those fancy interfaces for building the form; I just need the code.
Our plan is to create a custom WordPress Page Template, then create a page that uses that template. Finally, we will add in a little jQuery to improve the form. Letâ€™s write a little pseudo code to help determine how our page template will be structured.