Saturday, 10 December 2016

How To Add Contact Form to Your Blogger

In this tutorial you will learn how to add a contact form to your blogger. So, let's get started.
Add Contact Form to Blogger

Adding Contact Form to Your Blogger

step 1. Log in to your blogger dashboard.

step 2. Click on Layout. Then click Add a Gadget. On the pop up window click on More Gadgets (on the left hand side).
step 3. Find Contact Form. Save it. Click on the Save arrangement.
step 4. Click Cutomize from your dashboard. Click on Edit HTML button.
step 5. Press Ctrl+F in the editor and search for ContactForm
You'll probably jumped to the below given code
<b:widget id='ContactForm1' locked='false' title='Contact Form' type='ContactForm'>
Click the down arrow left to the code. Again click down arrow left to the below given code.
<b:includable id='main'>
in case if it is not opened.
step 6. Now you will see the below 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>
You just need to delete the code that marked Red. Do not delete the code marked Blue but just Red.
And you'll end up with
<b:includable id='main'>  
</b:includable>
step 7. Now search again for  ]]></b:skin>

Just before  ]]></b:skin>   add the the below given code.
/* CUSTOM CONTACT FORM */
.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: #C1C1C1;
background: #E3E3E3;
color: #585858;
width: 20%;
max-width: 20%;
margin-bottom: 10px;
height:30px;
font-size:16px;
}
.contact-form-button-submit:hover{
background: #ffffff;
color: #000000;
border: 1px solid #FAFAFA;
}
step 8. Save Template. Now create a new page and name it as something like Contact Us.
Now choose HTML mode and paste the below given code. Save it and you may want to disable comments on this page.
<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>
step 9. Publish the page. And you're done.
Open the contact page you just have created. And test it. If you receive any email on your inbox then it is the sign of the contact form is successfully added to your blogger.
Comment below if you have any questions or queries.
  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: How To Add Contact Form to Your Blogger Rating: 5 Reviewed By: admin