How to add contact form on page in Era Material

You feel annoyed if the contact form on the sidebar? I have a solution, namely by hiding the contact form on the sidebar then creating a contact form page.

For example like this blog, without contact form on the sidebar and I put it on the page. Look professional isn't it?

You need to know this is only hide the sidebar using CSS, don't remove the contact form widget. Because later it won't work.

Hide contact form on the sidebar

Go to Blogger Dashboard > Theme > Edit HTML, Ctrl + F on your keyboard and search CSS comment code like a below:

/* Custom CSS */

On below the comment add CSS code below.

.sidebar .ContactForm {
  display: none


/* Custom CSS */
.sidebar .ContactForm {
  display: none

Save theme.

Create contact form on the page

Go to Blogger Dashboard > Page > New page, add title page like Contact.

Switch write type from compose to HTML then copy and paste the code below on your contact page, publish.

#ContactForm1_contact-form-submit{font-family:"Roboto",sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:rgba(0,0,0,.87);font-size:14px;font-weight:500;letter-spacing:.4px;text-transform:uppercase;text-align:center;border:0;outline:none;background-image:none;background-color:#fff;display:inline-block;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;min-width:88px;height:36px;line-height:36px;padding:0 16px;margin:6px 0;border-radius:4px;overflow:hidden;white-space:nowrap;vertical-align:middle;cursor:pointer;z-index:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-transition:.2s;-o-transition:.2s;transition:.2s;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}#ContactForm1_contact-form-submit:hover,#ContactForm1_contact-form-submit:focus{color:#fff;background-color:#212121;-webkit-box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}#ContactForm1_contact-form-error-message{margin-top:16px;font-size:15px;font-weight:500;color:#f44336}#ContactForm1_contact-form-success-message{margin-top:16px;font-size:15px;font-weight:500;color:#2196F3}#ContactForm1_contact-form-error-message img{cursor:pointer;margin:0 8px}
<div class="contact-form-widget">
  <form name="contact-form" method="POST">
    <div class="textfield">
      <input id="ContactForm1_contact-form-name" name="name" autocomplete="name" required type="text" value=""/>
    <div class="textfield">
      <input id="ContactForm1_contact-form-email" name="email" autocomplete="email" required type="email" id="email" value=""/>
    <div class="textfield">
      <textarea id="ContactForm1_contact-form-email-message" name="email-message" id="message" rows="6"></textarea>
    <button id="ContactForm1_contact-form-submit" type="submit">Send</button>
    <div id="ContactForm1_contact-form-error-message"></div>
    <div id="ContactForm1_contact-form-success-message"></div>

Done, now just adjust according to taste.


Share this post:

About author
Front-End Developer. I like creative design and I love music. I'm Linuxer, specially Arch Linux.

Consider supporting us:

If you feel the article on this blog is useful, please consider supporting us. You can choose many options to support us by donate, including using the Bank, Crypto and others. Thanks.


Subscribe to our newsletter