Support » Fixing WordPress » Search tab in Nav Bar

  • Hey guys,

    Thematic allows for a search tab to be added into the sidebars. Is it possible to add this search tab into the nav bar? Next to the ‘home’, ‘about’, ‘contact’ tabs?

    Please let me know if anyone knows how to do this.

    Thank You,

Viewing 7 replies - 1 through 7 (of 7 total)
  • You COULD write a “page” with a searchform I guess, but perhaps there are more fancy ways of doing that.

    Yeah I thought about that, but I wanted to have the convenience of having a search tab directly in the nav bar. Rather than clicking to a page specifically set aside for the searchform.

    Anyone know how to do this?

    But what do you mean with “tab” then? A “tab” (I think) goes to a (in your case) page. Isn’t your question if you can put a search form in the header?

    Right, sorry, thats what I meant. I want a search form in my nav bar.

    How do I do that?

    That’s possible, but not easy. This is from my header.php:

    <div class="search">
    <?php  include (TEMPLATEPATH . "/searchform.php"); ?>

    Which means that thre is also a searchform.php:

    <form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
    <input type="text" size="20" name="s" id="s" value="<?php _e('Search') ?>..."  onblur="if(this.value=='') this.value='<?php _e('Search') ?>...';" onfocus="if(this.value=='<?php _e('Search') ?>...') this.value='';"/>

    And of course you need to makeup, so this is from my style.css:

    .search {
    	padding:1.5em 5% 0 0;
    .search form {
    .search input {
    	border:1px solid #69b;
    	padding:0.2em 5px;

    Just to get you going 🙂

    thank you gangleri!!!

    I will try to get it to work.

    Much appreciated 🙂

    If I wanted to put up google search instead, how would I go about doing that? setting it up in the nav bar I mean

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search tab in Nav Bar’ is closed to new replies.