SHARE
TWEET

Google Custom Search Box Code

a guest Apr 30th, 2010 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*google custom search box*/
  2.  
  3. //remove thesis navigation
  4.  
  5. remove_action('thesis_hook_after_header', 'thesis_nav_menu');
  6.  
  7. add_action('thesis_hook_after_header', 'custom_nav');
  8.  
  9.  
  10. /*custom Nav*/
  11.  
  12. function custom_nav() {
  13.  
  14. echo '<div id="nav">';
  15.  
  16. echo '<div id="nav_container">';
  17.  
  18. thesis_nav_menu();
  19.  
  20. echo '<div class="searchs">';
  21.  
  22. ?>
  23.  
  24. <form action="http://doggybytes.ca/search-results-3/" id="cse-search-box">
  25.  
  26.   <div>
  27.  
  28.     <input type="hidden" name="cx" value="003640320880537695101:duzzwtzajra" />
  29.  
  30.     <input type="hidden" name="cof" value="FORID:9" />
  31.  
  32.     <input type="hidden" name="ie" value="UTF-8" />
  33.  
  34.     <input type="text" name="q" size="31" />
  35.  
  36.     <input type="submit" name="sa" value="Search" />
  37.  
  38.   </div>
  39.  
  40. </form>
  41.  
  42. <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
  43.  
  44. <?php
  45.  
  46. echo '</div>';
  47.  
  48. echo '</div>';
  49.  
  50. echo '</div>';
  51. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top