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

  1. The_Creepshow_Creep
    Posted 7 years ago #

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

    -- I want to change the input value, but can't find this anywhere.

    Help! :)

  2. ronchicago
    Posted 7 years ago #

    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?

  3. The_Creepshow_Creep
    Posted 7 years ago #

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

    <?php get_search_form(); ?>

  4. 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.

  5. The_Creepshow_Creep
    Posted 7 years ago #

    Thanks, Otto. I'll give that a try...

  6. João Leitão
    Posted 6 years ago #

    exactly what i needed! thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic