Viewing 5 replies - 1 through 5 (of 5 total)
  • Rok

    (@rok)

    Open header.php and before the closing tag enter Search code:

    <div id="search">
    <form id="searchform" method="get" action="/index.php">
    <input type="text" class="search" name="s" id="s" size="28" onfocus="this.value=''" value="...search in blog" />
    </form></div>

    If your CSS does not has Search ID, just create one and define values as per your specific need. That’s all…

    Thread Starter TomJohnson

    (@tomjohnson)

    Hey, thanks!

    Rok

    (@rok)

    You are welcome!

    Why is it whenever I put this code in, it seems to bump it down a line? It never lines up with the other items on the line, and there’s no <br> or tags.

    Never mind. I got it. I had to add this to style.css

    #search {
    float: right;
    margin: 0;
    padding: 0;
    position: relative;
    right: 12px;
    top: -15px;
    }
    .search
    {
    background: #e9edde;
    padding: 2px;
    border: #6f776a;
    text-align:right;
    }

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘adding a search box to the Connection’s header’ is closed to new replies.