Cara membuat halaman kontak di Blogger

Berikut ini adalah langkah-langkah membuat halaman kontak di Blogger. Contoh hasil darim halaman kontak tersebut dapat dilihat di halaman kontak blog ini.

  1. Pertama, tambahkan gadget formulir kontak terlebih dahulu. Caranya, pada halaman dashboard Blogger pilih Tata Letak kemudian pilih Tambahkan Gadget. Selanjutnya akan muncul jendela baru, kemudian cari dan pilih Formulir Kontak, kemudian pilih Simpan.

  2. Gadget formulir kontak tersebut akan muncul di setiap halaman blog. Untuk menonaktifkannya, pada dashboard Blogger pilih Tema. Pada bagian Tema Saya, pilih SESUAIKAN. Pada bagian Lanjutan, pilih Tambahkan CSS. Pada bagian Tambahkan CSS khusus masukkan kode:
  3. #ContactForm1{display:none !important;}

  4. Buat halaman khusus untuk kontak. Caranya pada dashboard Blogger pilih Halaman, kemudian klik tanda tambah untuk menambah halaman. Buat judul halaman kontak misalnya Contact. Pada bagian posting, masukkan kode formulir kontak berikut ini:
  5. <div class="form">
      <form name="contact-form">
        <input class="contact-form-name" id="ContactForm1_contact-form-name" name="name" onblur="if (this.value == &quot;&quot;) {this.value = &quot;Nama&quot;;}" onfocus="if (this.value == &quot;Nama&quot;) {this.value = &quot;&quot;;}" size="30" type="text" value="Nama"/>
        <p></p>
        <input class="contact-form-email" id="ContactForm1_contact-form-email" name="email" onblur="if (this.value == &quot;&quot;) {this.value = &quot;Email&quot;;}" onfocus="if (this.value == &quot;Email&quot;) {this.value = &quot;&quot;;}" size="30" type="text" value="Email"/>
        <p></p>
        <textarea class="contact-form-email-message" id="ContactForm1_contact-form-email-message" name="email-message" onblur="if (this.value == &quot;&quot;) {this.value = &quot;Tinggalkan pesan...&quot;;}" onfocus="if (this.value == &quot;Tinggalkan pesan...&quot;) {this.value = &quot;&quot;;}" value="Tinggalkan pesan..."></textarea>
        <p></p>
        <input class="contact-form-button contact-form-button-submit" id="ContactForm1_contact-form-submit" type="button" value="Kirim" />
        <br />
        <div style="max-width: 500px; text-align: center; width: 100%;">
          <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>

  6. Untuk mempercantik halaman kontak, tambahkan kode CSS berikut:
  7. <style>
    .contact-form-name, .contact-form-email, .contact-form-email-message,
    .contact-form-subject, .contact-form-country {
       max-width: 300px;
       width: 100%;
       font-weight: bold;
     }
     .contact-form-name {
       display: inline-block;
       background: #FFF;
       background-color: #FFF;
       color: #A1A1A1;
       font-family: Arial, sans-serif;
       font-size: 13px;
       font-weight: bold;
       height: 30px;
       margin: 0;
       margin-top: 10px;
       margin-left: 10px;
       padding: 15px 15px 15px 5px;
       vertical-align: top;
       border: 1px solid #ddd;
       box-sizing: border-box;
     }
     .contact-form-email {
       display: inline-block;
       background: #FFF;
       background-color: #FFF;
       color: #A1A1A1;
       font-family: Arial, sans-serif;
       font-size: 13px;
       font-weight: bold;
       height: 30px;
       margin: 0;
       margin-top: 20px;
       margin-left: 10px;
       padding: 15px 15px 15px 5px;
       vertical-align: top;
       border: 1px solid #ddd;
       box-sizing: border-box;
     }
    
     .contact-form-subject {
       display: inline-block;
       background: #FFF;
       background-color: #FFF;
       color: #A1A1A1;
       font-family: Arial, sans-serif;
       font-size: 13px;
       font-weight: bold;
       height: 30px;
       margin: 0;
       margin-top: 20px;
       margin-left: 10px;
       padding: 15px 15px 15px 5px;
       vertical-align: top;
       border: 1px
       solid #ddd;
       box-sizing: border-box;
     }
     .contact-form-country {
       display: inline-block;
       background: #FFF;
       background-color: #FFF;
       color: #A1A1A1;
       font-family: Arial, sans-serif;
       font-size: 13px;
       font-weight: bold;
       height: 30px;
       margin: 0;
       margin-top: 20px;
       margin-left: 10px;
       padding: 15px 15px 15px 5px;
       vertical-align: top;
       border: 1px solid #ddd;
       box-sizing: border-box;
     }
    
     .contact-form-email:hover, .contact-form-name:hover {
       border: 1px solid #bebebe;
       box-shadow: 0 1px 2px rgba(5, 95, 255, .1);
       padding: 15px 15px 15px 5px;
     }
    
     .contact-form-email-message:hover {
       border: 1px solid #bebebe;
       box-shadow: 0 1px 2px rgba(5, 95, 255, .1);
       padding: 10px;
     }
     .contact-form-email-message {
       background: #FFF;
       background-color: #FFF;
       border: 1px solid #ddd;
       box-sizing: border-box;
       color: #A1A1A1;
       display: inline-block;
       font-family: arial;
       font-size: 12px;
       margin: 0;
       margin-top: 20px;
       margin-left: 10px;
       margin-bottom: 10px;
       padding: 10px;
       vertical-align: top;
       max-width: 500px!important;
       height: 120px;
       border-radius: 4px;
     }
     .contact-form-button {
       cursor: pointer;
       height: 30px;
       line-height: 30px;
       font-weight: bold;
       border: none;
     }
     .contact-form-button {
       display: inline-block;
       zoom: 1;
       /* zoom and *display = ie7 hack for
       display: inline-block */ *display: inline;
       vertical-align: baseline;
       margin: 0 10px;
       outline: none;
       cursor: pointer;
       text-align: center;
       text-decoration: none;
       font: 14px/100% Arial, Helvetica, sans-serif;
       padding: .5em 2em .55em;
       text-shadow: 0 1px 1px rgba(1, 1, 1, .3);
       -webkit-border-radius: .2em;
       -moz-border-radius: .2em;
       border-radius: .2em;
       -webkit-box-shadow: 0 1px 2px rgba(1, 1, 1, .3);
       -moz-box-shadow: 0 1px 2px rgba(1, 1, 1, .3);
       box-shadow: 0 1px 2px rgba(1, 1, 1, .3);
     }
     .contact-form-button:hover {
       text-decoration: none!important;
       border: none!important;
     }
     .contact-form-button:active {
       position: relative;
       top: 1px;
     }
    </style>

Komentar

Postingan populer dari blog ini

Cara menghilangkan titik item daftar urutan HTML

Ganti kode footer Datenstrom Yellow

Cara Mengimpor Koordinat Titik (Point) dari Microsoft Excel ke QGIS

Cara backup dan restore WordPress ke localhost

Cara update QGIS tanpa uninstall versi sebelumnya