8,990 views

Categorized | MattNutts Stuff

See All Posts By crkian

0

Adding A Basic Contact Form to Wordpress

Posted on 04 November 2007 by crkian

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Often over looked in blogging is the contact form, a lot just use a simple mailto: reference which just isn’t very good at all.

Why use a contact form?

  • Looks Good
  • Easier than a mailto
  • Helps your blog to stand out
  • Has more options than mailto:

Why not mailto?

I find it so awkward myself, once some one clicks to contact you it opens up your email client. which can take a long time or may open the wrong one so you have to search for the right one.

A contact form solves all this, ok it can be a hassle altering the form but once it is done it looks great and can have all the options within it that readers may want to ask.

What sort of things can a contact form do?

  • Have a space for a readers email address : Handy for replying
  • Allow a user to add their website : Handy if they have a question or you are just nosey
  • A space for a description : Readers can enter their questions here
  • Drop down boxes : Can contain subjects so you can instantly see what the reader is asking a question about
  • A captcha image : Mailto doesnt have this and can save on spam
  • Can hide your email address : Can stop email harvesting
  • Loads more besides

What are we going to use?

For the form we are going to use the great cforms plugin , it is a little complicated to start with but I hope to show you how to use it, and at the end you should have a fully functioning contact form that not only looks great but adds an extra feel of professional about it.

Features of this plugin include

  • SPAM protection
  • Ajax support
  • Backup & Restore
  • Multi-Recipients
  • Role Manager support
  • Database tracking

Downloading and Activating

As normal follow the instructions below, they can be found on every plugin page and save having to switch between posts.

Simply download the plugin and unzip it to a folder on your desktop. Ive created a folder called ‘MattNutts’ everything I will use for this site will be kept in that folder so its easy to get to and I know where everything is.

For this you will need an ftp transfer programme so you can upload the unzipped files to your webserver I use CuteFTP but there is plenty of others out there.

Simple steps to add the plugin and get it working.

1 Click on the link to download the file then extract the files to the folder you have created for the files.To create a folder right click the desktop and select new and then folder.

2 Start up your ftp software and enter the details for your server, these will most likely be Username, Host, Password and Site Name.

3 You need to upload the files to /wp-content/plugins if you have installed wordpress into a subfolder other than the Site Root (the first area your ftp will find) you will need to browse to it, it could be something like - wordpress/wp-content/plugins. The easiest way to tell if you are using a subfolder is to browse to your wordpress homepage for mine I just type in http://mattnutts.com yours could be the same but your site name or it could have extras after it like .com/wordpress or .com/myblog

4 When you see the folder open it so you are inside your plugins folder on your server then select the cforms folder and drag it over to the plugin folder, the upload should start and everything will transfer over.

Once you have uploaded your folder head over to the admin backarea and choose Plugins, activate the cfroms plugin by clicking on ‘activate’. The options for the form can be found by clicking on ‘cforms II’ at the top.

What Next?

Where it says ‘Your default form’ change the name to something a little better I put ‘Contact Us’

Below that is the Form Input Fields, this is the main part of the form and will be where you input items to show on the main form.

You can go with these settings already (Skip futher down the page for extra settings before going live) or you can carry wait for the Advanced Contact Form Post to set up the ultimate contact form (coming soon). If you decide to use the basic settings make sure you change the ‘My Fieldset’ to something better like ‘Contact Us’

Extra Settings Before Going Live

The best thing to do is set up a seperate page for your contact form, so goto ‘Write’ in the admin panel and create a page called ‘Contact Us’ in the html area switch to code view and add the following save the page and you have your very own Basic Contact Form, give it a try from the front end of your blog.

The Advanced Contact Form

In later posts we will cover the contact form in more depth

  • Adding a thankyou page
  • Adding Check Buttons
  • Adding a dropdown list
  • Auto Clear
  • Styling
  • Adding Uploads to the Form
  • Spam Checker
  • Plus lots lots more

So please pop back and see what we can show you next

[?]
Share This

Popularity: 100% [?]

If you enjoyed this post, make sure you subscribe to my RSS feed!

24 Comments For This Post

  1. jesie Says:

    Chris,
    You have a sound technical knowledge and write good posts on Wordpress. I’m thinking of Wordpress now. I already have blogspot. How can I use Wordpress and blogspot together?

    I’m giving you a thumbs up.

  2. Chris Says:

    You can transfer blogger posts to wordpress as far as I know, I may have to cover going from blogger to wordpress for my next post

  3. werelax Says:

    I agree this is a good forms plugin but not easy to setup.

    Here was my first try.

    http://www.we-relax.com/sources/subscribe-to-we-relax/medifreeze-sample-request-form

  4. Demian~DreamSinger Says:

    Thank you for this post. The contact form that came with my template doesn’t work. I mean it says it does, but when I tested it it never sent the email out.

    I’ll try this, and I look forward to reading your other articles about wordpress.

    Demian,
    ~DreamSinger

  5. Thomas L Says:

    I’ve been using cforms for awhile (think it was you that tipped me about the plugin) and it works very well. Most people contact me via the form and not directly via my email address.

    Need to configure it to look better tho ;)

  6. Chris Says:

    Thank you for this post. The contact form that came with my template doesn’t work. I mean it says it does, but when I tested it it never sent the email out.

    I’ll try this, and I look forward to reading your other articles about wordpress.

    Demian,
    ~DreamSinger

    Thnaks, hope it works out, if you have any problems let me know

  7. Chris Says:

    I’ve been using cforms for awhile (think it was you that tipped me about the plugin) and it works very well. Most people contact me via the form and not directly via my email address.

    Need to configure it to look better tho ;)

    I remember the post on blogcatalog where you asked about contact forms, glad to see it has worked out. Whats next in the world of photography Thomas, got that personal blog going yet :P

  8. Will Says:

    This is a great post.

    I use the same plugin Dane Morgan mentioned at BlogCatalog:
    http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/

    I added a couple of simple customizations to it and so far I have been happy with it.

    )Since you seem to have a good knowledge of WordPress, here are a few post suggestions based on questions I get asked by my visitors who seem to uniformly complain that they can;t get answers at the WP support forums. (I am not enough of a php or WordPress expert to answer them myself.)

    1.) Is there an easier way than the Codex instructions to upgrade versions of WP?

    2.) Widgets really slow down my WP site. What can I do to avoid this?

    3.) How can I have a one sidebar for my main page and another for my single post pages?

  9. Chris Says:

    This is a great post.

    I use the same plugin Dane Morgan mentioned at BlogCatalog:
    http://www.dagondesign.com/articles/secure-form-mailer-plugin-for-wordpress/

    I added a couple of simple customizations to it and so far I have been happy with it.

    )Since you seem to have a good knowledge of WordPress, here are a few post suggestions based on questions I get asked by my visitors who seem to uniformly complain that they can;t get answers at the WP support forums. (I am not enough of a php or WordPress expert to answer them myself.)

    1.) Is there an easier way than the Codex instructions to upgrade versions of WP?

    2.) Widgets really slow down my WP site. What can I do to avoid this?

    3.) How can I have a one sidebar for my main page and another for my single post pages?

    I will certainly throw them in over the next couple of weeks, thanks for the ideas

  10. Gerri Says:

    Excellent information. I will put it to good use! Thank you.

  11. Balaji Says:

    Hi Matt,

    I added the form without any issues, but when i submit the form I get this “Error: please type a comment.” error.

    Please suggest.

    Thanks,
    Balaji

  12. Chris Says:

    Balaji,

    Do you have a link to your site/blog please

  13. Chris Says:

    Just had a check with mine, try turning of the WP Comment Feature under CFORMS II its near the bottom of everything, just untick the box

  14. Franco Says:

    ok, maybe i’m completely missing something here. I went ahead and uploaded all the files. activated the plug in. But i can’t see where it says cforms II to manage the option at the top. what could i possible be doing wrong???

  15. Chris Says:

    Which folder did you upload the cforms one or the contactforms one that is inside it, I see the new version has this setup

  16. Dale Says:

    The link is dead 404

  17. Chris Says:

    Thanks for that, its updated now :)

  18. randy bragg Says:

    Do you know anyone that can make me a site like mybloglog???

  19. Zack Katz Says:

    Wow man, that was the worst spam post I’ve read in a while. Congratulations!

  20. crkian Says:

    http://mattnutts.com/admin/mattnutts-stuff/missing-content/

    Read that you will see why the rest is missing

  21. mike Says:

    Hey matt,

    was searching for how to install a contact form to my blog and came to this page. Im new to wordpress, and dont know how to what are css files/how to save captcha/ fonts to my plugins folder.

    Do you have a step by step tutorial?

    Clicked on “Adding a basic contact form to wordpress” but all that came up is:
    Why use a contact form?

    * Looks Good
    * Easier than a mailto
    * Helps your blog to stand out
    * Has more options than mailto:

    mike’s last blog post..PPC vs SEO

  22. Chris Says:

    I will try to rewrite the post, it was lost during a database spat so ends up lookingreally bad.

    You can use the contact form to contact me with your concerns on the plugin if you wish

    Chris’s last blog post..Walk In The Woods

  23. Robin Warren Says:

    I’m fairly new to WP - this is only my 3rd installation. I have NO IDEA where to begin figuring out how to use this plug-in (which is successfully installed and activated). I just can’t find a Tutorial anywhere. Can you help? Without instructions (is there an instruction file in one of the plug-in folders?), the plug-in is useless to me. But it sounds perfect.

    Thanks. Sorry for the stupid question.

  24. JT Wallace Says:

    I’m new to this too. I’ve managed to create a form and get the cfII added to my visual toolbar. But when I click on it, the form as illustrated in the help section doesn’t come up. Why not and/or what am I doing/not doing that I should be not doing/doing.

    Thanks for any help!

3 Trackbacks For This Post

  1. Adding a Forum to Wordpress » Matts Nutts SEO and Blogging Says:

    […] may want to ask something that isnt fitting with any of your posts and don’t want to use the Contact Form or prefer not […]

  2. Add a Drop Down List to Your Contact Form » Matts Nutts SEO and Blogging Says:

    […] covered setting up a basic contact form so if you want to catch up and install the plugin and set u a basic form you may want to go back […]

  3. A Blog Into a Social Network For Free Using Wordpress Part 1 » Matts Nutts SEO and Blogging Says:

    […] some interactive features to your blog something to make you stand out, a forum could do that or a contact form is an example of a little interactive feature for your […]

Leave a Reply

$1 Per Day Advertising