• I need to change search form in my default WordPress theme. In sidebar.php search form is:

    • <?php get_search_form(); ?>
    • This code should include searchform.php. It’s work good, but there are not any searchform.php file in my template!!! So how can I change this search form?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hah, it seems to be a popular question, to which nobody posted the answer yet. I am looking for the same thing.

    it should be there
    if not, download wordpress and grab it from the default theme

    stympi

    (@stympi)

    LOL Me too… for a moment I though I was nuts. I spent hours trying to figure out where the search widget is getting pulled from…

    WP automatically generates a form if no searchform.php exists. It’s easy enough to create one though. Just create searchform.php and add this code:

    <div class="search">
    	<form method="get" class="search-form" id="search-form" action="<?php bloginfo( 'home' ); ?>/">
    	<div>
    		<input class="search-text" type="text" name="s" id="search-text" value="Search this site" />
    		<input class="search-submit" type="submit" name="submit" id="search-submit" value="Search" />
    	</div>
    	</form>
    </div>

    Ditto, ditto. Pretty jokes the form is still on my page. Truly blackbox action going on here!

    Creating a searchform.php file worked.

    Thanks buddies.

    enjoy 🙂

    Awesome, thanks. I too was looking for a searchform.php and this thread solved it for me.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘No SEARCHFORM.php in DEFAULT theme!!!’ is closed to new replies.