WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. The_Creepshow_Creep
    Member
    Posted 5 years ago #

    <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! :)

  2. ronchicago
    Member
    Posted 5 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
    Member
    Posted 5 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. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    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
    Member
    Posted 5 years ago #

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

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

    exactly what i needed! thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic