Showing posts with label Search Box For Website. Show all posts
Showing posts with label Search Box For Website. Show all posts

Wednesday, July 29, 2015

6 Stylish Custom Search Box for Website/Blogger

Hello Blogger, Its been a long time last I had published any post on Blogger and Blogging section. Actually by this time I was working with other popular section of this site, like Gaming, Software and Android Apps. And I had published many Exciting Full Version Games for Free. However although I had taken too long, but finally from today I'm gonna start writing on Blogger and Website Widgets.


In today's post I'm gonna share 6 different stylish Search Box Widget for Website and Blogger. Search Box is an essential and necessary part of any Site for the convenience of the visitors to find the content from it. But sometime you may not find the right Search Box widget, which suite best with the design of your site. Or sometime the default search box may not attractive and efficient enough to bring effective result.


You can choose the Search Box for your site from the 6 search box I'm sharing today. These Search Box are very stylish and attractive. The code that I'm sharing will work on any HTML site. In this post will only show how you can add these Search box to your Blogger blog. Let's start...


How to Add Custom Search Box to Blogger:


  • First Log into your Blogger Account and go to Dashboard.
  • Then click on Layout Option.
  • Here click on Add a Gadget link where you want to place the search box.
  • The from the gadget list select HTML/JavaScript.
Blogger Gadget
  • Now inside the popup window Paste the any Search Box code from given below.
  • Finally click on Save Button 



Style > 1:
Search Box - 1

  <style>  
 #searchbox {  
   background: #d8d8d8;  
   border: 4px solid #e8e8e8;  
   padding: 20px 10px;  
   width: 250px;  
 }  
 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/AVvXsEgVVmOdvTplHoSTx2oVGQU_xpc7O8R2mMCcUaaWNHdJ3TKXD45ZO647HkpqvqNQOuFP2TH8j69vQk_hFiOodxwBhAhBVCHKJ0roAbZyStxOCQynSBxJNIBuwyzvBwBttT_7CXQ6wq0PMWrM/s1600/search-dark.png) no-repeat 10px 6px #fff;  
   border-width: 1px;  
   border-style: solid;  
   border-color: #fff;  
   font: bold 12px Arial,Helvetica,Sans-serif;  
   color: #bebebe;  
   width: 55%;  
   padding: 8px 15px 8px 30px;  
 }  
 #button-submit {  
   background: #6A6F75;  
   border-width: 0px;  
   padding: 9px 0px;  
   width: 23%;  
   cursor: pointer;  
   font: bold 12px Arial, Helvetica;  
   color: #fff;  
   text-shadow: 0 1px 0 #555;  
 }  
 #button-submit:hover {  
   background: #4f5356;  
 }  
 #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>  



Style > 2:
Search Box - 2

 <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/AVvXsEgVVmOdvTplHoSTx2oVGQU_xpc7O8R2mMCcUaaWNHdJ3TKXD45ZO647HkpqvqNQOuFP2TH8j69vQk_hFiOodxwBhAhBVCHKJ0roAbZyStxOCQynSBxJNIBuwyzvBwBttT_7CXQ6wq0PMWrM/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/AVvXsEhDy4jsVm_DKnbeL60Bc-bEogAsE_u-OJG-vR57cSn1dLOdWv-SKDA_5IcgMGxbRsFEtqB3DIIRkJ7AJX49ruM_-rRiLOnewJaeNaOQxUJwfKZhniM4FyOX2CZA7mdGLeRXA2mu-AECACfh/s1600/slider-arrow-right.png) no-repeat;  
 margin-left: -40px;  
 border-width: 0px;  
 width: 43px;  
 height: 45px;  
 }  
 </style>  
 <form id="searchbox" method="get" action="/search" autocomplete="off">  
 <input name="q" type="text" size="15" placeholder="Enter keywords here..." />  
 <input id="button-submit" type="submit" value=" "/>  
 </form>  



Style > 3:
Search Box - 3

  <style>  
 #searchbox {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigCvOquxTLfSB6ELjkD5b1MEpdE5il6ed7lYXhF7C0_rmjyXJ9EN7EKWlkjO6HGX5XbZz4XF4EIUjx5ub7u6Y7HLyfM1feFxenW_GRl_QM3Kt7XR68xbmyY7o1oAoZbkGoH9nkssiQLLm4/s1600/searchbar.png) no-repeat;  
   width: 208px;  
   height: 29px;  
 }  
 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: transparent;  
   margin: 3px 0px 0px 20px;  
   padding: 5px 0px 5px 0px;  
   border-width: 0px;  
   font-family: "Arial Narrow", Arial, sans-serif;  
   font-size: 12px;  
   color: #828282;  
   width: 70%;  
   display: inline-table;  
   vertical-align: top;  
 }  
 #button-submit {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDkqGaQV9tSLd5Eywuj59vnhKGAzl1YqUcO-NuzrDwQQ3qypP_CkNyxGOzRvjUMFm0Hbse_j_TbAYnm0QA0i-RNrlfAzBUugEX5Vr3BFunmjfMpDvdQRUNFFVYM2wH3q4wMhMQ2d4PqHbM/s1600/magnifier.png) no-repeat;  
   border-width: 0px;  
   cursor: pointer;  
   margin-left: 10px;  
   margin-top: 4px;  
   width: 21px;  
   height: 22px;  
 }  
 #button-submit:hover {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTIiAh7qYH4vqVSm8Go7OjKS9SrdPkWRvEdoDcPmaueaIFc2CL32aRR_yvfxx1CIO6KtnVBr0vQfZy2bksolT9keFDsAKCZCMh-mfUHtha1r-Gh9EWsCQucReQJm1MkQeLpVicTb7ZUIQo/s1600/magnifier-hover.png) no-repeat;  
 }  
 #button-submit:active {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTIiAh7qYH4vqVSm8Go7OjKS9SrdPkWRvEdoDcPmaueaIFc2CL32aRR_yvfxx1CIO6KtnVBr0vQfZy2bksolT9keFDsAKCZCMh-mfUHtha1r-Gh9EWsCQucReQJm1MkQeLpVicTb7ZUIQo/s1600/magnifier-hover.png) no-repeat;  
   outline: none;  
 }  
 #button-submit::-moz-focus-inner {  
   border: 0;  
 }  
 </style>  
 <form id="searchbox" method="get" action="/search" autocomplete="off">  
   <input name="q" type="text" size="15" placeholder="search..." />  
   <input id="button-submit" type="submit" value="" />  
 </form>  



Style > 4:
Search Box - 4

 <style>  
 #searchbox {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0QgE8JiXe_zRjGnzRbD1sB_-eY78G7DgPcSnOb_d1xrcCl3mLgHyq5K30QudKNbenFgcKzFkq2EV258ZVuGB1OTs_Ei73HLLd0L8sHcyVSmGyjoAr1DglPB6oiwjB4_A0vRFxy_gKJfrr/s1600/search-box.png) no-repeat;  
   height: 27px;  
   width: 202px;  
 }  
 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: transparent;  
   margin: 0px 0px 0px 12px;  
   padding: 5px 0px 5px 0px;  
   border-width: 0px;  
   font-family: "Arial Narrow", Arial, sans-serif;  
   font-size: 12px;  
   font-style: italic;  
   width: 77%;  
   color: #828282;  
   display: inline-table;  
   vertical-align: top;  
 }  
 #button-submit {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOwhr_w6VouPju9-i2yhIqccdsOriiHWCR_N1Wx2OV2AJhbm0h0KRu7-A07jeV901nznVr9jBv3ELvEuoPVVm2OL5ZyRadYztzfG6W7z1i4IMTOT0YBYthZpvhi9J612G2QnZNAxZD2gcc/s1600/search-button.png) no-repeat;  
   border-width: 0px;  
   cursor: pointer;  
   width: 30px;  
   height: 25px;  
 }  
 #button-submit:hover {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPRZps2uA9en5fqtfkaO-Ui4j86cRCTzsZ1XxzmhVuK8s57_eT_-dWgaq9thp013vEfZi1UtU6GxtEk8rR-D55-ZPpvHfIR_WRd_fyz4ymesXosrsU0ac2nmnUiSDejvhMUnH3webN69m7/s1600/search-button-hover.png) no-repeat;  
 }  
 #button-submit::-moz-focus-inner {  
   border: 0;  
 }  
 </style>  
 <form id="searchbox" method="get" action="/search" autocomplete="off">  
 <input name="q" type="text" size="15" placeholder="search..." />  
 <input id="button-submit" type="submit" value="" />  
 </form>  



Style > 5:
Search Box - 5

 <style>  
 #searchbox {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgiu7QhBPoeYNId_IRyT75BjuvlChpsaJqIvOs_mJVhrbWp_zahfnM5wKW6TrXKejx0QA_E50z2ClP6yiKW72VBX-A66t1cW7CVjKzM_wTHWquoqfw_oCO8aRcKiOD9Ala5SsUCJXAtrTIt/s1600/search-box1.png) no-repeat;  
   width: 250px;  
   height: 65px;  
 }  
 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: transparent;  
   padding: 5px 0px 5px 20px;  
   margin: 10px 15px 0px 0px;  
   border-width: 0px;  
   font-family: "Brush Script MT", cursive;  
   font-size: 12px;  
   color: #595959;  
   width: 65%;  
   font-weight: bold;  
   display: inline-table;  
   vertical-align: top;  
 }  
 #button-submit {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0K3Ld56ZoX7KdiQJBfQofl5Cq6WQz-mzkwzk25Pi6_dqQSpZznSOtutr_JduIxk-O5oFK47rYh7vS5ILOI34XtnWKequwbzjng239n33_BuVzXCiQpQPj1jUuqMcdtjDpiYR7P4nsOOcm/s1600/magnifier.png) no-repeat;  
   border-width: 0px;  
   cursor: pointer;  
   margin-top: 10px;  
   width: 19px;  
   height: 25px;  
 }  
 #button-submit:hover {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilS6XeBuPtHferKWhTeD8ZFK99Sgi3UnbVX0SRfZdBliE3b1CnEsu6cY5hmJL-gOwXKozkPKNExV21WIT1U3GZqGBeHP6Z2tMhyphenhyphen_MIHElpYZItFQmnIp79SBADdD28TKI63b8KvDZo6Zm4/s1600/magnifier-hover.png) no-repeat;  
 }  
 #button-submit:active {  
   background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilS6XeBuPtHferKWhTeD8ZFK99Sgi3UnbVX0SRfZdBliE3b1CnEsu6cY5hmJL-gOwXKozkPKNExV21WIT1U3GZqGBeHP6Z2tMhyphenhyphen_MIHElpYZItFQmnIp79SBADdD28TKI63b8KvDZo6Zm4/s1600/magnifier-hover.png) no-repeat;  
   outline: none;  
 }  
 #button-submit::-moz-focus-inner {  
   border: 0;  
 }  
 </style>  
 <form id="searchbox" method="get" action="/search" autocomplete="off">  
   <input class="textarea" name="q" type="text" size="15" placeholder="Search here..." />  
   <input id="button-submit" type="submit" value="" />  
 </form>  



Style > 6:
Search Box - 6

  <style>  
 #searchbox {  
 width: 280px;  
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiS_WfZA1JukoXPbJS_hQv2KVyiq-GH_CWBiMODo0bi0fMuqioQfMmnc2i6yyqG-495D8NqaXBD-IOMJ0tYlGis3vjLjE8_0tQyGxoGIqxTt8JzrTD2YFTvN_t9O5h7tApDcygMO1Mrs1nr/s1600/search-box.png) no-repeat;  
 }  
 #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: transparent;  
 border: 0px;  
 font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;  
 font-size: 14px;  
   color: #f2f2f2 !important;  
   padding: 10px 35px 10px 20px;  
   width: 220px;  
 }  
 #searchbox input[type="text"]:focus {  
 color: #fff;  
 }  
 #button-submit{  
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjadSx4PrjnxNU32xw5PeknevtSAyWmhg_eeTYp9_1Xr4HcDOOg-fEiqBQIXBbP41LceyeTxDEeL9rGOMUXFxNA8kL_keiUvLlRAgW8bgDuYVoeMb33b2wdGnyDrwkUo_IhOQnA2ie9Qbl1/s1600/search-icon.png) no-repeat;  
 margin-left: -40px;  
 border-width: 0px;  
 width: 40px;  
 height: 50px;  
 }  
 #button-submit:hover {  
 background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjI4Culo9UL19En-TBYQX9ockEXWznOzN5safyJ0pi4Sb5Z6LsMAKVVhugIETbUUVGoEpuQ9EFuuMgNbSq__X4-iXBGvSHnhkTvz2rOKAfYMbZ23MhQ1MtqgFxUFl1nnmRg0V204A21t2lT/s1600/search-icon-hover.png);  
 }  
 </style>  
 <form id="searchbox" method="get" action="/search" autocomplete="off">  
 <input name="q" type="text" size="15" placeholder="Enter keywords here..." />  
 <input id="button-submit" type="submit" value=" "/>  
 </form>  


That's it. After completing the addition of the new search box to your blog, now view you blog to check the Search Box. If everything is correct you will see that you blog has a new Search Box.



Please Share This Post
Stay with TecHieASiF for more IT related post

Wednesday, January 22, 2014

Add Google Custom Search to Your Site! (Exclusive)

google custom search engine
Actually there is nothing to discuss about the search box widget. Generally most of the blog or website have a search option. Search Box makes it easier to find something inside a site. Have a look at the search box of www.iTTimesbd.com at the top. This site has more than 450 posts. So, to find a specific post it not possible to explore all the posts one by one. In this case the easier and quicker option is Search Box. So, you can easily imagine the importance of Search Box for a site. And in today's post I gonna discuss about Google Custom Search.


There are several way you can add Search Box widget your site. But Google Custom Search is something special. Google Custom Search lets you include a search engine on your website to help your visitors find the information they're looking for. Because Custom Search is based on Google's core search technology, you can be confident that your users are getting high quality, relevant results. And the most interesting thing is, you can integrate the Google Custom Search box with your Adsense account.

All you need just to create a Google Custom Search box for your site and add it to your site. Before proceed further have a look at the custom search engine of this site - iTTimesbd. Now complete the following step by step procedure to add Google Custom Search Box to your site.

Note: You will have to log in with your Gmail account.

Creating Google Custom Search Box:
  • Then click on New Search Engine to create a new engine.
  • Then Select the language of your search engine.
  • Then in the name box enter a name to identify your search engine. (ie. iTTimesbd)
  • Now click on Create button. Done!

Once you've created your custom search engine, Now you can add the Custom Search Box to your site. To do this, you'll need to copy some code and paste it into your site's HTML where you want your search engine to appear.


Adding Custom Search Box to Your site:
  • Then click on  Setup, and click the Basics tab.
  • Now in the Detaljer section, click Get code.
  • Then Copy and Paste the code inside your Site's HTML page in where you want the Search Box to appear.

Example: You have to Paste the code into a <div> element in your site's <body> section, where you want both of the search box and the search results to render. See the below HTML example to place the search box properly.


<html>
<head>
<title>my site</title>
...
<head>
<body>
<div1>...</div1>
PASTE THE CODE HERE
<div2>...</div2>
</body>
</html>


For Blogger.com Users: Here adding this Search Box is as easy as adding HTML/JavaScript gadget. 
  • Sign into your BLogger account and go to Dashboard.
  • Then go to Layout >> Add a gadget link where you wanna place this Search Box.
  • Then from the gadget list select HTML/JavaScript.
  • Now Paste the Search Box Code inside the content box.
  • Finally click on Save button.

Customization: Actually I have already discussed the necessary points, but still I want to write something in brief which will help you to customize this search box: First go go to the Google Custom Search Home. Select your search engine from here.
Custom Search Engine
  •  Setup: Here Basic and Make Money these two option is important From the Basic tab you can can rename your search engine, give it a description, provide keywords, change language and add more sites to your search engine.
    From the Make Money tab you can can add your AdSense account to your Search Engine. As a result Adsense will show relevant ads in the search result and you will make money when users click on an ad they see in your search results.
  • Look and Feel: Here in this section you will get four (4) option to customize your search box so that it fits with your site design. Set the Layout and Theme which suit your site design most. From the Tilpass option you can change the Font and color of the Search Box and Button. In the Thumbnail you can Enable or disable thumbnail images in search results. 

That's it. I hope you have already added the Search Box to your site. Still if you have any confusion then don't hesitate to leave your valuable comment.


Stay with www.iTTimesbd.com for more IT related post