How to add search in blog

How to add custom search in you blog

Step 1:Go to Blogger dashborad 

Step 2:Go to layout
Step 3:Click Add gadget 
Step 4:in popup window Scroll down
Step 5: And click HTML/JAVASCRIPT Add
Step 6:And then add tittle 
Step 7:Copy and paste below the code
          
          <style>
#searchbox {
width: 240px;
}
#searchbox input {
    outline: none;
}
input:focus::-webkit-input-placeholder {
    color: transparent;
}
input:focus:-moz-placeholder {
    color: transparent;
}
input:focus::-moz-placeholder {
    color: transparent;
}
#searchbox input[type="text"] {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEit-QDejGjYNP9IGVSCy-2hBK7fSYgpj_twMW-WgzB1Kfi5KaP8y5_tH3UfHyyj3-cu-azrykEwFYSNDHERu7zzB-SAdwEb5lfZx2eQhOv6GVPXUdydANAtZaCby-W022MbfXpiio4L9Y1W/s1600/search-dark.png) no-repeat 10px 13px #f2f2f2;
border: 2px solid #f2f2f2;
    font: bold 12px Arial,Helvetica,Sans-serif;
    color: #6A6F75;
    width: 160px;
    padding: 14px 17px 12px 30px;
    -webkit-border-radius: 5px 0px 0px 5px;
    -moz-border-radius: 5px 0px 0px 5px;
    border-radius: 5px 0px 0px 5px;
    text-shadow: 0 2px 3px #fff;
    -webkit-transition: all 0.7s ease 0s;
    -moz-transition: all 0.7s ease 0s;
    -o-transition: all 0.7s ease 0s;
    transition: all 0.7s ease 0s;
}
#searchbox input[type="text"]:focus {
background: #f7f7f7;
border: 2px solid #f7f7f7;
width: 200px;
padding-left: 10px;
}

#button-submit{
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD2j_PxxruSlXNz2t63Ge2DmFOAwAZ2vaFr264Ehxh9h2gPuLOVOKhX6xBjjXpaKQTKO6N_EOxWVnOCdDSDbMwXlmLVJ_3ZmHkpSruSbsIrKJkIERaiku_zLZK0ezHPN87h_M2YekrClag/s1600/slider-arrow-right.png) no-repeat;
margin-left: -40px;
border-width: 0px;
width: 43px;
height: 45px;
}
</style>

<form id="searchbox" method="get" action="http://yourblogname//search" autocomplete="off">
<input name="q" type="text" size="15" placeholder="Enter keywords here..." />
<input id="button-submit" type="submit" value=" "/>
</form>

Step 8:Note you need to replace one thing "yourblogname" replace with "your blog address" example: Basimsameer.blogspot.com

Step 9:then click Save

Comments

Popular posts from this blog

We can't connect to the service you need right now. Check your network connection or try this again later. Windows 10 mail

How to root Micromax unite 3(q372) without computer

How to unlock the bootloader of MI Devices