Cara Memasang Kotak Pencarian Keren di Blog
Romeltea | Follow @romel_tea
MEMASANG widget Kotak Pencarian (Search Box) di situs web atau blog wajib dilakukan para desainer/developer blog.
Fungsi kotak pencarian untuk memudahkan pengunjung mencari data atau informasi yang mereka butuhkan di blog kita.
Keberadaan kotak pencarian di blog sangat User Friendly mengingat mayoritas user membuka mesin pencari (google, bing, yahoo) untuk mencari info yang mereka butuhkan.
Berikut ini beberapa desain kotak pencarian yang di-share admin blog "The Tech Gears" dalam posting "Beautiful Search Box Widget for Blogger". Silakan ke TKP untuk panduan pemasangan selengkapnya.
2. Pilih "HTML/Javascript"
3. Copy & Paste kode berikut ini di kotak "Contents"
4. Save!
Cek blog Anda (Refresh). Mestinya Kotak Pencarian (Searc Box) sudah muncul di seidebar blog Anda.
Kotak Pencarian Simple Responsive
Jika Anda suka kotak pencarian simple, putih, responsive, maka kodenya berikut ini:
Kotak pencarian yang dipasang di sidebar blog ini kode yang terakhir ini. Wasalam. (http://blogromeltea.blogspot.com/).*
Fungsi kotak pencarian untuk memudahkan pengunjung mencari data atau informasi yang mereka butuhkan di blog kita.
Keberadaan kotak pencarian di blog sangat User Friendly mengingat mayoritas user membuka mesin pencari (google, bing, yahoo) untuk mencari info yang mereka butuhkan.
Berikut ini beberapa desain kotak pencarian yang di-share admin blog "The Tech Gears" dalam posting "Beautiful Search Box Widget for Blogger". Silakan ke TKP untuk panduan pemasangan selengkapnya.
Cara Memasang Kotak Pencarian Keren di Blog
1. "Layout" > "Add a Gadget" di Sidebar2. Pilih "HTML/Javascript"
3. Copy & Paste kode berikut ini di kotak "Contents"
4. Save!
<style>
#search-box {
position: relative;
width: 100%;
margin: 0;
}
#search-form
{
height: 40px;
border: 1px solid #999;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: #fff;
overflow: hidden;
}
#search-text
{
font-size: 14px;
color: #ddd;
border-width: 0;
background: transparent;
}
#search-box input[type="text"]
{
width: 90%;
padding: 11px 0 12px 1em;
color: #333;
outline: none;
}
#search-button {
position: absolute;
top: 0;
right: 0;
height: 42px;
width: 80px;
font-size: 14px;
color: #fff;
text-align: center;
line-height: 42px;
border-width: 0;
background-color: #4d90fe;
-webkit-border-radius: 0px 5px 5px 0px;
-moz-border-radius: 0px 5px 5px 0px;
border-radius: 0px 5px 5px 0px;
cursor: pointer;
}
</style>
<div id='search-box'>
<form action='/search' id='search-form' method='get' target='_top'>
<input id='search-text' name='q' placeholder='Search Here' type='text'/>
<button id='search-button' type='submit'><span>Search</span></button>
</form>
</div>
#search-box {
position: relative;
width: 100%;
margin: 0;
}
#search-form
{
height: 40px;
border: 1px solid #999;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
background-color: #fff;
overflow: hidden;
}
#search-text
{
font-size: 14px;
color: #ddd;
border-width: 0;
background: transparent;
}
#search-box input[type="text"]
{
width: 90%;
padding: 11px 0 12px 1em;
color: #333;
outline: none;
}
#search-button {
position: absolute;
top: 0;
right: 0;
height: 42px;
width: 80px;
font-size: 14px;
color: #fff;
text-align: center;
line-height: 42px;
border-width: 0;
background-color: #4d90fe;
-webkit-border-radius: 0px 5px 5px 0px;
-moz-border-radius: 0px 5px 5px 0px;
border-radius: 0px 5px 5px 0px;
cursor: pointer;
}
</style>
<div id='search-box'>
<form action='/search' id='search-form' method='get' target='_top'>
<input id='search-text' name='q' placeholder='Search Here' type='text'/>
<button id='search-button' type='submit'><span>Search</span></button>
</form>
</div>
Cek blog Anda (Refresh). Mestinya Kotak Pencarian (Searc Box) sudah muncul di seidebar blog Anda.
Kotak Pencarian Simple Responsive
Jika Anda suka kotak pencarian simple, putih, responsive, maka kodenya berikut ini:
Style #2 GO
<style>
.serching{margin:0;width:100%;}.serching form{border:1px solid #ddd;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:14px}.serching form input{display:block!important;margin:0;border:0;padding:5px 0;outline:0;height:20px;line-height:20px;font-size:13px;border-radius:0!important}.serch{float:left;width:85%!important;text-indent:10px}.serchg{float:right;width:15%!important;height:30px!important;padding:0!important;background:gray;color:#fff;border:0!important;font-size:12px!important}
</style>
<div class='serching'><form action='/search?q='><input class='serch' name='q' placeholder='Cari...' title='Cari Tulisan di Sini' type='text'/><button class='serchg' type='submit'> GO </button><span style='clear: both;display:block'/></span></form></div>
.serching{margin:0;width:100%;}.serching form{border:1px solid #ddd;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:14px}.serching form input{display:block!important;margin:0;border:0;padding:5px 0;outline:0;height:20px;line-height:20px;font-size:13px;border-radius:0!important}.serch{float:left;width:85%!important;text-indent:10px}.serchg{float:right;width:15%!important;height:30px!important;padding:0!important;background:gray;color:#fff;border:0!important;font-size:12px!important}
</style>
<div class='serching'><form action='/search?q='><input class='serch' name='q' placeholder='Cari...' title='Cari Tulisan di Sini' type='text'/><button class='serchg' type='submit'> GO </button><span style='clear: both;display:block'/></span></form></div>
Style #2 ICON
<style type="text/css">
form#_bcd_141013_search_form {
position: relative;
display: block;
clear: both;
float: none;
border: 1px solid #dddddd;
padding: 5px;
font-size: 12px;
background-color: #ffffff;
}
input#_bcd_141013_search_text {
width: auto;
border: none;
margin: 0;
padding: 0 0 0 4px;
line-height: 2em;
height: 2em;
outline: none;
background: transparent;
color: #000000;
}
button#_bcd_141013_search_submit:hover {
opacity: 0.8;
}
button#_bcd_141013_search_submit {
width: auto;
padding: 0 5px;
margin: 0;
position: absolute;
right: 5px;
top: 5px;
line-height: 2em;
height: 2em;
text-align: center;
cursor: pointer;
border: none;
min-width: 2em;
color: #000000;
background: #ffffff;
}
html[dir="rtl"] button#_bcd_141013_search_submit {
right: auto;
left: 5px;
}
</style>
<form action='/search' id='_bcd_141013_search_form' method='get'>
<input id='_bcd_141013_search_text' name='q' value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" type='text'/>
<button type="submit" id="_bcd_141013_search_submit"><i class="fa fa-search"></i></button>
</form>
form#_bcd_141013_search_form {
position: relative;
display: block;
clear: both;
float: none;
border: 1px solid #dddddd;
padding: 5px;
font-size: 12px;
background-color: #ffffff;
}
input#_bcd_141013_search_text {
width: auto;
border: none;
margin: 0;
padding: 0 0 0 4px;
line-height: 2em;
height: 2em;
outline: none;
background: transparent;
color: #000000;
}
button#_bcd_141013_search_submit:hover {
opacity: 0.8;
}
button#_bcd_141013_search_submit {
width: auto;
padding: 0 5px;
margin: 0;
position: absolute;
right: 5px;
top: 5px;
line-height: 2em;
height: 2em;
text-align: center;
cursor: pointer;
border: none;
min-width: 2em;
color: #000000;
background: #ffffff;
}
html[dir="rtl"] button#_bcd_141013_search_submit {
right: auto;
left: 5px;
}
</style>
<form action='/search' id='_bcd_141013_search_form' method='get'>
<input id='_bcd_141013_search_text' name='q' value="Search..." onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" type='text'/>
<button type="submit" id="_bcd_141013_search_submit"><i class="fa fa-search"></i></button>
</form>
Kotak pencarian yang dipasang di sidebar blog ini kode yang terakhir ini. Wasalam. (http://blogromeltea.blogspot.com/).*
Previous
« Prev Post
« Prev Post
Next
Next Post »
Next Post »
No comments on Cara Memasang Kotak Pencarian Keren di Blog
Post a Comment
No Spam, Please!