Cara menginstal Simple Search Box:
- Klik Tambah Widget > pilih HTML/Javascript
- Hapus Judul Widget
- Kode sebagai berikut:
<style>
#searchbox {
background: #3A4962;
padding: 2px 1px;
width: 100%;
}
input:focus::-webkit-input-placeholder {
color: transparent;
}
input:focus:-moz-placeholder {
color: transparent;
}
input:focus::-moz-placeholder {
color: transparent;
}
#searchbox input {
outline: none;
}
#searchbox input[type="text"] {
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgi92Ttl2wlhuuYtXv8F3BetRN4VlgL50-J11duCmUSEW2s0zer8A3o5a7cZaXXDcON-5vXjtR5zaVGENgEnxwsy4x-qq-7vo3CsoFqEV3Y-FRSd2k1923L-cZAG-GyfY8NbHQCZyA79AiE/s1600/search-dark.png) no-repeat 10px 6px #fff;
border-width: 2px;
border-style: solid;
border-color: #3A4962;
font: bold 12px Arial,Helvetica,Sans-serif;
color: #000;
width: 55%;
padding: 8px 15px 8px 30px;
}
#button-submit {
background: #EF5747;
border-width: 0px;
padding: 8px 0px;
width: 27%;
cursor: pointer;
font: bold 12px Arial, Helvetica;
color: #fff;
text-shadow: 0 1px 0 #555;
}
#button-submit:hover {
background: #CF000F;
}
#button-submit:active {
background: #5b5d60;
outline: none;
}
#button-submit::-moz-focus-inner {
border: 0;
}
</style>
<form id="searchbox" method="get" action="/search">
<input name="q" type="text" size="15" placeholder="Type here..." />
<input id="button-submit" type="submit" value="Search" />
</form>
- Save
Demikian informasi tentang Membuat Widget Pencarian di Blog. Maaf jika ada kekurangan, silahkan tambahkan beberapa kekurangan pada artikel di kolom komentar. Saya harap informasi ini bermanfaat.
No comments:
Post a Comment