WordPress.org

Support

Support » How-To and Troubleshooting » In which file is this code please? (search box-related)

In which file is this code please? (search box-related)

  • <form id="searchform" method="get" action="http://www.url.com">
    <div>
    <input name="s" id="s" size="15" type="text">
    <input value="Search" type="submit">
    	</div>
    	</form>

    — I want to change the input value, but can’t find this anywhere.

    Help! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • knowing where the search menu is helps…

    1) in the masthead = file = header.php
    2) in a sidebar = file = sidebar.php ( if you have such a file )

    where do you “see” your search menu?

    The search form is in the side bar, but all I see in sidebar.php is the following:

    <?php get_search_form(); ?>

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    That search form comes straight out of the WordPress core, however, if your theme has a searchform.php file, then the contents of that file will override it.

    So create a searchform.php file in your theme directory and put your modified form into that, and voila.

    Thanks, Otto. I’ll give that a try…

    exactly what i needed! thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘In which file is this code please? (search box-related)’ is closed to new replies.