Pada postingan kali ini gue pengin share mengenai cara membuat menu dropdown pada blog,bagi kalian yang udah mahir tentunya ini hal sepele dan gampang,tapi bagi kalian yang masih newbie kaya gue ini ,,pasti kebingungan saat melihat menu dropdown milik temen,lalu berfikir ,ini gimana bikinnya ya,resep dan bumbunya apa aja ya...hmm,ok deh yuk langsung aja menuju TKP,kita belajar bikin menu dropdown dulu.
Langkah-langkahnya
1. Kalian masuk dulu ke akun bloger kalian masing-masing
2. Pilih rancangan / desing dan klik edit HTML dan lanjutkan
3. Centang "Expand Template Widget" untuk menghindari apabila terjadi kesalahan
4. Kalian cari kode ]]></b:skin> dan letakkan kode berikut tepat di atas kode ]]></b:skin>
ini kode-nya :
/* Menu Horizontal Dropdown ----------------------------------------------- */ #menuwrapperpic{background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIlJdgjYCBElmSTtMpBiqDRLrGBHpDizry_LWCkZZ6pp5q45n4PYwAWz70wMpgIIfs4xNbjHmsHO1m_HosBC6qc14AYHUW2kk45fBWUhdFunFZhxsE3Tp0M7F1BUeRWda3gVF5aKxCtGc/s1600/menubar.png) repeat-x;width:960px;margin:0 auto;padding:0 auto} #menuwrapper{width:960px;height:35px;margin:0 auto} .menusearch{width:300px;float:right;margin:0 auto;padding:0 auto} .clearit{clear:both;height:0;line-height:0.0;font-size:0} #menubar{width:100%} #menubar,#menubar ul{list-style:none;font-family:Arial, serif;margin:0;padding:0} #menubar a{display:block;text-decoration:none;font-size:12px;font-weight:700;text-transform:uppercase;color:#CECECF;border-right:1px solid #191919;padding:12px 10px 8px} #menubar a.trigger{background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCjKYp2UozYEDS4082Y1e_8Agk-vW1nE2vj3I7Qh0li7PCCmGzh212SPPuKLkyeCSYVCCNV9r0y4uCstv9Ict3VKutMwYzBD3zGJkPmpJnPZyBVFxPsG-EhTtMoMO31XoyyHbSUjh2Ky0/s1600/arrow_white.gif);background-repeat:no-repeat;background-position:right center;padding:12px 24px 8px 10px} #menubar li{float:left;position:static;width:auto} #menubar li ul,#menubar ul li{width:170px} #menubar ul li a{text-align:left;color:#fff;font-size:12px;font-weight:400;text-transform:none;font-family:Arial;border:none;padding:5px 10px} #menubar li ul{z-index:100;position:absolute;display:none;background:#222;padding-bottom:5px;-moz-box-shadow:0 2px 2px rgba(0,0,0,0.6);-webkit-box-shadow:0 2px 2px rgba(0,0,0,0.6)} #menubar li:hover a,#menubar a:active,#menubar a:focus,#menubar li.hvr a{background-color:#222;color:#E98C0A} #menubar li:hover ul,#menubar li.hvr ul{display:block} #menubar li:hover ul a,#menubar li.hvr ul a{color:#edfdfd;background-color:transparent;text-decoration:none} #menubar li ul li.hr{border-bottom:1px solid #444;border-top:1px solid #000;display:block;font-size:1px;height:0;line-height:0;margin:4px 0} #menubar ul a:hover{background-color:#555!important;color:#fff!important;text-decoration:none}
Selanjutnya kalian cari kode <header> atau </header>
- <header> : untuk menempatkan menu di atas nama blog
- </header> : untuk menempatkan menu di bawah nama blog
Copy kode di bawah ini dan Paste-kan tepat di atas kode <header> atau di bawah kode </header>
<div id='menuwrapperpic'>
<div id='menuwrapper'>
<ul id='menubar'>
<li><a href='/'><img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkhiaSafCz7bv3rd_lwz7n0DBNE7ZnnlEuTo1YKFLGZXPQjm6aIqukPZotrhU6JC3J221W_wcMCoxkvKGH6THbFj7o8NPdci-ih3G3Mt5ZHbPBgMaC-MsUrYDHTd7_UXQT2Yb4VdcO-fA/s1600/home_white.png' style='padding:0px;'/> Home</a></li>
<li><a href='http://winduaguss.blogspot.com/2013/06/sekilas-tentang-saya.html'target='new'>Penulis</a></li>
<li><a class='trigger'>Contact Us</a>
<ul>
<li><a href='https://plus.google.com/u/0/103123677389517934960/posts?hl=en' target='new'>Goggle +</a></li>
<li class='hr'/>
<li><a href='https://twitter.com/Cahyoe_aGuss' target='new'>Contact on Twitter</a></li>
<li class='hr'/>
<li><a href='http://www.facebook.com/cahyoeseparatorcrew' target='new'>Contact on Facebook</a></li>
<li class='hr'/>
<li><a href='http://www.facebook.com/CahyoeBlog?ref=hl' target='new'>My Fanspage</a></li>
</ul>
</li>
<li><a href='http://winduaguss.blogspot.com/2013/06/daftar-isi-blog.html' target='new'>Daftar Isi</a></li>
<li><a class='trigger'>Kumpulan Artikel</a>
<ul>
<li><a href='http://winduaguss.blogspot.com/search/label/Artikel%20Islami'>Artikel Islami</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Artikel%20Percintaan'>Artikel Cinta</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Tips%20%26%20Trick'>Tips-trick</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Humor'>Cerita Lucu</a></li>
<li class='hr'/>
</ul>
</li>
<li><a class='trigger'>Pilih Kategori</a>
<ul>
<li><a href='http://winduaguss.blogspot.com/search/label/Puisi'>Kumpulan Puisi</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Artikel%20Islami'>Artikel Islami</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/cerita%20dewasa'>Cerita Dewasa</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Introspeksi%20Diri'>Motivasi Hidup</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Master%20Windows%20%28OS%29'>Master Windows (OS)</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Cerita%20Menarik'>Cerita Menarik</a></li>
</ul>
</li>
</ul> <div class='menusearch'>
<div style='float:right;padding:8px 8px 0 0;'>
<form action='http://winduaguss.blogspot.com/search' method='get' target=''>
<input name='sitesearch' style='display:none;' value='http://winduaguss.blogspot.com/'/>
<input id='search-box' name='q' onblur='if(this.value=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value='';' style='width:170px;border:none;padding:4px 10px; font:italic 12px Georgia;color:#666; background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDgL24xFHBkXMlmDHNfjYFOC0f3-Pv6JviwFZrr95vm8RP6WxrerRQqG_WDJtf5t1m16j2gZmjATIrcRxJikIHoQapWoM_BF_EHL3yscz4kXqSRK7hBn5DMKN6AJB7N_hzRQ3RHtJ3H6o/s1600/field-bg.gif) no-repeat;' type='text' value='Cari disini ya sob...'/><input align='top' id='search-btn' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgARzHhaY5sWF4Cr449KB9CTwXnF0x2qtHAgj7fIfG98H9FP2f0FPBjKA-OIF1LocS9t20z8S1T23-G8DMs1WYEIgixs7SeU1lg4W2ua6x0lFCiZIG50UKQzJ4GMnO0aJThQs5Bihot01o/s1600/bg_search.gif' type='image' value='Search'/>
</form></div></div><br class='clearit'/></div><div style='clear:both;'/></div>
<div id='menuwrapper'>
<ul id='menubar'>
<li><a href='/'><img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkhiaSafCz7bv3rd_lwz7n0DBNE7ZnnlEuTo1YKFLGZXPQjm6aIqukPZotrhU6JC3J221W_wcMCoxkvKGH6THbFj7o8NPdci-ih3G3Mt5ZHbPBgMaC-MsUrYDHTd7_UXQT2Yb4VdcO-fA/s1600/home_white.png' style='padding:0px;'/> Home</a></li>
<li><a href='http://winduaguss.blogspot.com/2013/06/sekilas-tentang-saya.html'target='new'>Penulis</a></li>
<li><a class='trigger'>Contact Us</a>
<ul>
<li><a href='https://plus.google.com/u/0/103123677389517934960/posts?hl=en' target='new'>Goggle +</a></li>
<li class='hr'/>
<li><a href='https://twitter.com/Cahyoe_aGuss' target='new'>Contact on Twitter</a></li>
<li class='hr'/>
<li><a href='http://www.facebook.com/cahyoeseparatorcrew' target='new'>Contact on Facebook</a></li>
<li class='hr'/>
<li><a href='http://www.facebook.com/CahyoeBlog?ref=hl' target='new'>My Fanspage</a></li>
</ul>
</li>
<li><a href='http://winduaguss.blogspot.com/2013/06/daftar-isi-blog.html' target='new'>Daftar Isi</a></li>
<li><a class='trigger'>Kumpulan Artikel</a>
<ul>
<li><a href='http://winduaguss.blogspot.com/search/label/Artikel%20Islami'>Artikel Islami</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Artikel%20Percintaan'>Artikel Cinta</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Tips%20%26%20Trick'>Tips-trick</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Humor'>Cerita Lucu</a></li>
<li class='hr'/>
</ul>
</li>
<li><a class='trigger'>Pilih Kategori</a>
<ul>
<li><a href='http://winduaguss.blogspot.com/search/label/Puisi'>Kumpulan Puisi</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Artikel%20Islami'>Artikel Islami</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/cerita%20dewasa'>Cerita Dewasa</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Introspeksi%20Diri'>Motivasi Hidup</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Master%20Windows%20%28OS%29'>Master Windows (OS)</a></li>
<li class='hr'/>
<li><a href='http://winduaguss.blogspot.com/search/label/Cerita%20Menarik'>Cerita Menarik</a></li>
</ul>
</li>
</ul> <div class='menusearch'>
<div style='float:right;padding:8px 8px 0 0;'>
<form action='http://winduaguss.blogspot.com/search' method='get' target=''>
<input name='sitesearch' style='display:none;' value='http://winduaguss.blogspot.com/'/>
<input id='search-box' name='q' onblur='if(this.value=='')this.value=this.defaultValue;' onfocus='if(this.value==this.defaultValue)this.value='';' style='width:170px;border:none;padding:4px 10px; font:italic 12px Georgia;color:#666; background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDgL24xFHBkXMlmDHNfjYFOC0f3-Pv6JviwFZrr95vm8RP6WxrerRQqG_WDJtf5t1m16j2gZmjATIrcRxJikIHoQapWoM_BF_EHL3yscz4kXqSRK7hBn5DMKN6AJB7N_hzRQ3RHtJ3H6o/s1600/field-bg.gif) no-repeat;' type='text' value='Cari disini ya sob...'/><input align='top' id='search-btn' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgARzHhaY5sWF4Cr449KB9CTwXnF0x2qtHAgj7fIfG98H9FP2f0FPBjKA-OIF1LocS9t20z8S1T23-G8DMs1WYEIgixs7SeU1lg4W2ua6x0lFCiZIG50UKQzJ4GMnO0aJThQs5Bihot01o/s1600/bg_search.gif' type='image' value='Search'/>
</form></div></div><br class='clearit'/></div><div style='clear:both;'/></div>
Keterangan:
- Kode berwarna merah adalah Url /alamat yang ingin kalian pasang
- Kode berwarna biru adalah teks yang akan tampil pada menu dropdown
Nah,sekarang coba save template dan buka blog kalian, tapi sebelum di save coba di preview dulu untuk memastikan usaha kalian berhasil tanpa kesalahan...Nah demikianlah cara membuat menu dropdown pada blog,,selamat mencoba.....
No comments:
Post a Comment