• Resolved chinaman

    (@chinaman)


    Hi,

    I’m trying to make the search box in the header of my blog function but to no avail. Right now I can’t make it search the blog posts [url http://www.mychinastart.com/all

    This probably due to the wrong code but I don’t know any other:)

    The current code in the header.php is

    ————-

    <form action="http://www.mychinastart.com/page.php?id=3" method="post" name="search" id="search" class="headerboxform">
    My China Start
    " style="margin-right: 130px;">China Blog
    China Directory Index
    <input type="text" name="s" id="s" size="10" />
    Search Links
    <input name="fakeSubmitButton" style="display: none;" type="submit" />
    </form>

    ———–

    I’m sure I messed up somewhere, and would love to get any pointers on how to fix this.

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • You have some code that does not appear to be attached to anything:

    ” style=”margin-right: 130px;”>

    That said, I would take a look at how the search box is set up in the sidebar.php included in the default WordPress themes. That should help … for instance, I’m not sure why you’re using page.php?id=3. It should probably be using searchform.php unless you’ve set up page.php?id=3 to actually perform the search.

    Added: sorry. Loosely translated, my post meant: I don’t know exactly, but I can see some good places to start looking. 🙂

    in netscape your search is doing fine – if you type in city you’ll get (Hangzhou and Ningbo) and (Xian, Xiamen and Kunming).

    I have no problem using the search on your site. I assume you figured out the problem (which as DianeV pointed out, was the form element’s action attribute value).

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search Box Header’ is closed to new replies.