Viewing 5 replies - 1 through 5 (of 5 total)
  • Basically, there is no value set for the action attribute on the search form. This problem appears to have been corrected in later releases of the theme – you are using 1.2.8 while the latest release is 1.3.2 – if you have not made any modifications to the theme, the easiest solution may be to upgrade to the latest version. If this is not possible, you will want to open header.php and look for code that looks similar to:

    <div class="SearchBox">
    		<form method="get">
    			<input type="text" class="SearchQuery" id="SearchQuery" value="Search here..." name="s" />
    			<input type="submit" name="submit" class="SearchButton" value="Find" />
    		</form>
    
    	</div>

    you then need to replace this bit:

    <form method="get">

    with:

    <form method="get" action="<?php bloginfo('url') ?>/">

    Thread Starter bprbrigittepellerinrobsoncom

    (@bprbrigittepellerinrobsoncom)

    Thank you SO MUCH! I made too many changes to the theme to re-upload, so I changed that line like you said and it’s all working beautifully.
    YAY!

    You’re welcome ??

    I had problems too. My searches all went to the home page instead a search results page. So I looked at the code from a site where the search was working and found out that I had this missing:

    name="s"

    So I changed this:

    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" id="s" size="15" />

    to this:

    <input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" size="15" />

    And voila, the search is working!

    I am having a similar issue.

    https://client.undergrounddesign.co.nz/rockstarnz.co.nz/

    <!– Search Form Start –>
    <?php $search_text = “Search”; ?>
    <form method=”get” action=”<?php bloginfo(‘url’) ?>/”>
    <input type=”text” class=”login-fields” value=”<?php echo $search_text; ?>”
    name=”s” id=”s”
    onblur=”if (this.value == ”)
    {this.value = ‘<?php echo $search_text; ?>’;}”
    onfocus=”if (this.value == ‘<?php echo $search_text; ?>’)
    {this.value = ”;}” />
    <input type=”hidden” id=”searchsubmit” />
    </form>
    <!– Search Form End –>

    Even my widgets return the same result of nothing found.

    Any help would be most appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Search not working on pages’ is closed to new replies.