Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Creating a contact page with a contact form

From: Create an Online Portfolio with WordPress

Video: Creating a contact page with a contact form

To finish off the new portfolio site will add a contact form to the contact page. This is a poorly kept secret in the web industry. If you want people to contact you through your website, you should offer them a contact form. First of all people are far more likely to fill it out then they are to fire up their email program, copy your email address, paste it into the sender, then type a subject and then send you an email. More importantly though, leaving your email address on a website in plain view, opens you up to a barrage of unwanted spam with ads for ink toner, free trips to the moon, and far more ludicrous stuff.

Creating a contact page with a contact form

To finish off the new portfolio site will add a contact form to the contact page. This is a poorly kept secret in the web industry. If you want people to contact you through your website, you should offer them a contact form. First of all people are far more likely to fill it out then they are to fire up their email program, copy your email address, paste it into the sender, then type a subject and then send you an email. More importantly though, leaving your email address on a website in plain view, opens you up to a barrage of unwanted spam with ads for ink toner, free trips to the moon, and far more ludicrous stuff.

Trust m, a contact form is always the way to go. By the way, if you're following this course using the exercise files and you cut in at this point in this chapter, you need to jump back, because each of the movies in this particular chapter follow consecutively from the previous one, so you need to go through all the steps to get to where I am. There are huge list of contact form plug-ins available for WordPress, some better than others. Of the free variety I tend towards one called a Contact Form 7, but lately I've been using the premium plug-in Gravity Forms which gives me way more options.

This latter one is overkill if you are just building a basic contact form like we're doing now, so we'll just go with Contact Form 7. If you prefer a different one or just one to experiment, knock yourself out. They're all pretty much the same. To add the plug-in, I simply go to Plugins and click on Add New and then I'll search for Contact Form 7. This will bring up a list not only of the contact form I'm looking for, the first one here, but also a bunch of other ones, like I said there are lot of these available and they all do sort of the same thing but in different ways, so you can experiment and see what you like the best.

Since I want to use Contact Form 7, I'll simply click Install Now, click OK that I want to install it and then let WordPress install the contact gorm for me. If this doesn't work or if you're having any trouble installing a plug-in you should check out the WordPress3 Essential Training course, where installing plug-ins is covered extensively. Once the plug-in is installed I could activate it, either from right in here or I can go to the Plugins page and activate it manually from in here, but I've already activated it so we're good to go.

Contact Form 7 adds a new field up to very bottom of my Administration panel called Contacts. In here I can now setup a new contact form. The default contact form created by created by Contact Form 7 is pretty good, so I'll just stay with that, but if you want to you can edit the code here. You can also create more contact forms if you want to or even generate custom tags. When you scroll down you get to the actual functionality of the contact form. For now, all I'm going to do is enter the email address that the emails generated by the contact form will be sent to.

So in this case its culinaryaristryrichard@gmail.com and you can also put in what the From field displays. The default is actually pretty good, your name and your email, and then the Subject, here I usually put in From website and then the subject. You can also do more customize things like send to second email address. You can also customize what messages the sender will receive and so on and so forth.

It's a fairly advanced plug-in and it's free, so you can kind of experiment with it and see what you think. When I've made all my changes I click Save. Once the form is saved I can place it in one of my posts or my pages, you simply copy this code here, Contact Form 1, and then go to Pages > All Pages and here I find my Contact page and from here I can put in some text and I can enter the contact form itself. So I'll say, "If you want to get in touch with us, fill out the form below." That's all you need to do. If you now click Update and we go and navigate to the Contact page, you'll see the Contact now has a basic form asking for Your Name, Your Email, a Subject, a Message and has a Send button at the bottom.

Then as for the front page, it currently displays the comments, so I'll turn that off. Now in the default view for the page I can't see it, so I'll go to Screen Options, activate the Discussions field, close Screen Options, and then at the bottom here, I can turn comments and trackbacks off. I'll update the page again, reload the Contact page, and now we have the contact form without the comments, and as before the links all of our custom post types is at the bottom.

By adding a contact form to your online portfolio, you achieve several things. You look more professional, you give people an easy way of contacting you and you protect yourself from professional spammers and other evildoers on the web. And with that you have a completed online portfolio.

Show transcript

This video is part of

Image for Create an Online Portfolio with WordPress
Create an Online Portfolio with WordPress

40 video lessons · 28570 viewers

Morten Rand-Hendriksen
Author

 
Expand all | Collapse all
  1. 6m 28s
    1. Welcome
      58s
    2. Using the exercise files
      3m 54s
    3. Using the code snippets file
      1m 36s
  2. 8m 31s
    1. What is an online portfolio?
      2m 43s
    2. Tour of the finished project
      3m 15s
    3. Setting up a WordPress development environment
      2m 33s
  3. 16m 10s
    1. Creating site architecture
      5m 1s
    2. Creating a child theme
      6m 7s
    3. Creating an external file to manage functions separately from the theme
      5m 2s
  4. 25m 26s
    1. What is a custom post type?
      2m 14s
    2. Setting up a custom post type
      6m 39s
    3. Adding advanced variables to the custom post type
      3m 35s
    4. Advanced custom post type functionalities
      4m 29s
    5. Changing the menu position of the custom post type
      3m 19s
    6. Adding a custom post type icon
      5m 10s
  5. 22m 8s
    1. What are custom taxonomies?
      3m 34s
    2. Setting up a basic custom taxonomy
      2m 52s
    3. Hooking a custom taxonomy to a post type
      3m 13s
    4. Adding advanced variables to a custom taxonomy
      3m 9s
    5. Using hierarchical and nonhierarchical custom taxonomies
      5m 54s
    6. Using custom taxonomies in admin
      3m 26s
  6. 25m 40s
    1. Populating content into the custom post types
      10m 54s
    2. Uploading videos to YouTube
      2m 22s
    3. Embedding YouTube videos in a custom post type
      4m 23s
    4. Uploading videos to WordPress
      8m 1s
  7. 39m 47s
    1. Creating custom post type templates
      6m 50s
    2. Adding taxonomy info to the custom post type template
      9m 13s
    3. Creating conditional custom taxonomy links
      4m 46s
    4. Handling multiple post type templates: Individual templates
      6m 25s
    5. Handling multiple post type templates: Consolidating everything in one file
      6m 21s
    6. Handling multiple post type templates: Making custom post types the default
      6m 12s
  8. 15m 23s
    1. Creating an index page for a custom post type
      8m 10s
    2. Creating a custom taxonomy index page
      7m 13s
  9. 12m 3s
    1. Creating a custom footer sidebar template
      6m 58s
    2. Displaying a list of links to the latest custom post type posts
      5m 5s
  10. 14m 58s
    1. Creating static pages for the front and the blog
      4m 54s
    2. Populating the menu with new index pages
      4m 52s
    3. Creating a contact page with a contact form
      5m 12s
  11. 5m 55s
    1. Including the abstraction layer in other stock themes
      5m 55s
  12. 1m 22s
    1. Next steps
      1m 22s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Create an Online Portfolio with WordPress.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?

No

Your file was successfully uploaded.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.