Wordpress Themes for Business | KOBA Themes Wordpress Themes for Business | KOBA Themes
0
  • Start a Website
  • WordPress themes
  • Installation
  • About
    • Contact
BloggerWordpress

How to add a contact form to your blog? ( WordPress + Blogger Tutorial)

by kotrynabasson 16/03/201626/02/2020
HOW TO ADD A CONTACT FORM TO YOUR BLOG?

Having a contact page on your blog can help you land the best deals with companies or build a connection with your readers. It’s really up to you to decide which way of contact is best for you & your brand. I personally love using both- displaying my email address on my social media as well as including contact form to my blog + website.

Adding a contact form to your blog can be done by adding a few coding tweaks and I’m here to follow you through those steps.HOW TO ADD A CONTACT FORM TO YOUR BLOG?

WordPress.org

Let’s get this out of the way as it’ss more than easy. With all of the awesome plugins, you can use for your WP blog you only have to set up your actual form by selecting what sections you need & simply use a shortcode on your page. My favourite plugin to use is Contact Form 7.

Follow these steps to set up:

Step 1: Go to your PLUGINS section, select  and search for ‘ Contact Form 7 ‘.
Step 2: Download, activate & install.
Step 3: You should now be able to see CONTACT option in your WordPress sidebar:

adding contact form, wordpress, contact form 7
Step 4: Go ahead and select ‘ ADD NEW ‘
Step 5: You will be taken to the page to create your contact form. You can adjust it to your needs, but the default options are pretty decent too:

contact form 7, creating a form, wordpress theme

Step 6: Once you added all the fields you’d like to have in the form, make sure you save it.
Step 7: Then, go ahead & copy the shortcode underneath the Form Title. You will need to have this ready to insert into your Contact Page.
Step 8: Now go to your Contact Page and select Edit. Make sure to have your editor set to HTML mode. Simply paste in the shortcode & save the page.

You should now be able to see a contact form on your page!
That was quick, I told ya!

Blogger

Now to add a contact form on Blogger might look a bit scary as you actually have to go into HTML editor of the template, so make sure to Back Up your template before you begin. You can do this by going to TEMPLATE-> BACK UP/RESTORE-> DOWNLOAD FULL TEMPLATE.

OK, now when your blog design is safe, we can get started. Do add a contact form to a page on Blogger you will have to perform the following steps:

Step 1: First of all, go to LAYOUT page & select to add NEW WIDGET, find a Contact Form widget & insert it into the layout. It doesn’t matter where it’s placed as it won’t be visible for now.

Step 2: Now go to TEMPLATE-> EDIT HTML.

Click inside of the editor text area and press CTRL+F (CMD+F on a Mac). In the search bar type ContactForm then hit enter.

You should find this line:

<b:widget id='ContactForm1' locked='false' title='Contact Form' type='ContactForm'>

under it, you should see this code:

<b:includable id='main'>
 <b:if cond='data:title != &quot;&quot;'>
 <h2 class='title'><data:title/></h2>
 </b:if>
 <div class='contact-form-widget'>
 <div class='form'>
 <form name='contact-form'>
 <p/>
 <data:contactFormNameMsg/>
 <br/>
 <input class='contact-form-name' expr:id='data:widget.instanceId + &quot;_contact-form-name&quot;' name='name' size='30' type='text' value=''/>
 <p/>
 <data:contactFormEmailMsg/> <span style='font-weight: bolder;'>*</span>
 <br/>
 <input class='contact-form-email' expr:id='data:widget.instanceId + &quot;_contact-form-email&quot;' name='email' size='30' type='text' value=''/>
 <p/>
 <data:contactFormMessageMsg/> <span style='font-weight: bolder;'>*</span>
 <br/>
 <textarea class='contact-form-email-message' cols='25' expr:id='data:widget.instanceId + &quot;_contact-form-email-message&quot;' name='email-message' rows='5'/>
 <p/>
 <input class='contact-form-button contact-form-button-submit' expr:id='data:widget.instanceId + &quot;_contact-form-submit&quot;' expr:value='data:contactFormSendMsg' type='button'/>
 <p/>
 <div style='text-align: center; max-width: 222px; width: 100%'>
 <p class='contact-form-error-message' expr:id='data:widget.instanceId + &quot;_contact-form-error-message&quot;'/>
 <p class='contact-form-success-message' expr:id='data:widget.instanceId + &quot;_contact-form-success-message&quot;'/>
 </div>
 </form>
 </div>
 </div>
 <b:include name='quickedit'/>
</b:includable>

Delete everything in red so you’re only left with:

<b:includable id='main'></b:includable>

Step 3: Save the template & go to PAGES. Create a new Contact page, make sure you set page editor to HTML mode and paste in this code:

<div class="widget ContactForm" id="ContactForm1">
<div class="contact-form-widget">
<div class="form">
<form name="contact-form">
<div class="fm_name">
Your Name:
<input class="contact-form-name" id="ContactForm1_contact-form-name" name="name" size="30" type="text" value="" /></div>
<div class="fm_email">
E-mail Address *:
<input class="contact-form-email" id="ContactForm1_contact-form-email" name="email" size="30" type="text" value="" /></div>
<div style="clear:both">
</div>
<div class="fm_message">
Message *:
<textarea class="contact-form-email-message" cols="25" id="ContactForm1_contact-form-email-message" name="email-message" rows="5"></textarea>
<input class="contact-form-button contact-form-button-submit" id="ContactForm1_contact-form-submit" type="button" value="Submit" />
<div class="contact-form-error-message" id="ContactForm1_contact-form-error-message">
</div>
<div class="contact-form-success-message" id="ContactForm1_contact-form-success-message">
</div>
</div>
</form>
</div>
</div>
</div>

Your form should now be visible!

Step 5: If you also want to adjust the styling of it, go to TEMPLATE->CUSTOMIZE->ADVANCED-> ADD CSS and paste in this code:

.contact-form-widget {
margin-left:auto;
margin-right:auto;
width: 600px;
max-width: 100%;
padding: 0px;
color: #000;
}
.fm_name, .fm_email {
float:left;
padding:5px;
width:48%
}
.fm_message {
padding:5px;
}
.contact-form-name, .contact-form-email {
width: 100%;
max-width: 100%;
margin-bottom: 10px;
height:40px;
padding:10px;
font-size:16px;
}
.contact-form-email-message {
width:100%;
max-width: 100%;
height:100px;
margin-bottom:10px;
padding:10px;
font-size:16px;
}
.contact-form-button-submit {
    border-color: #fff;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    width: 20%;
    max-width: 20%;
    margin-bottom: 10px;
    height: 30px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 100;}

.contact-form-button-submit:hover{
background: #f6f6f6;
color: #000000;
border: 1px solid #FAFAFA;
}

Don’t forget to Save your Template. Your form should now be set up & ready to use! Let me know if you give this a try!

adding contact form, blogger, contact form, wordpress
0
Previous Post How to Add a Signature Under Your Posts in Blogger?Next Post Styling Read More Button on Blogger

Comments (5)

  1. Rikki

    on 01/04/2016

    This was so easy to follow thank you!

  2. Kerstin

    on 04/06/2016

    Easy to follow and big thank you for the extra styling in the “add css” box. looks really good!

  3. jacqueline davis moranti

    on 16/07/2016

    Loved this! Your instructions were wonderful!

    -Jacqui

  4. Kanyi

    on 27/07/2016

    Awesome blog you have. Thanks for the tutorial

  5. Yasmeen

    on 10/09/2016

    This was a great tutorial, but I’m having some issues. I did a test to see if the contact form page actually works and sadly it doesn’t. I followed all of the instructions, but it seems like some information is possibly missing which is refraining me from receiving the emails directly.
    Hope to get a response soon!

Comments are closed.

Shop

  • WordPress Themes
  • Add-ons
  • Custom Website Design
  • Blogger to WordPress Migration

Steps:

  • #1 Start a website
  • #2 Choose your theme
  • #3 Theme-installation

Help

  • Contact
  • Log in
  • Support

Istallation Services:

We can set up your WordPress theme for you in less than 24 hours! Check out our installation services.

Privacy Policy / KOBA themes © 2020 / All Rights Reserved
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.