Viewing 6 replies - 1 through 6 (of 6 total)
  • Lorelle

    (@lorelle)

    I’m not familiar with it, but I’d put the code from google pasted into where you want it in your template (usually index.php) and remove the references to the search and search from in the same file. I’d comment it out using // before each line before you remove it rather than deleting it wholesale. This way, if it breaks, you have something to return to.

    You can find these references by searching for SEARCH in the index.php file.

    Avenir

    (@avenir)

    If you’re using the default template, then you should open the file searchform.php, delete what’s in there and then put in the Google searchbar code. Kubrick makes the search form a separate file to ensure that any changes to the search form are represented across the entire blog.

    Lorelle

    (@lorelle)

    Ah, the modularness of modular WordPress!

    Thread Starter adeboer

    (@adeboer)

    Still not working and i can’t find anything in index.php – the one in the default theme folder and the one in the wordpress root. The search.php is the code that is excecuted after one presses the search button – its not the search form itself – that is what I want to change. I need to find where the default search kubrick code is located that lays out the search form and replace it with the google code…

    Thanks.

    aDRIAN

    lbessant

    (@lbessant)

    The search form code, as Avenir said is in searchform.php.

    It looks like this:

    <form method="get" id="searchform" action="<?php echo $_SERVER['PHP_SELF']; ?>">
    <div><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
    <input type="submit" id="searchsubmit" value="Search" />
    </div>
    </form>

    Thread Starter adeboer

    (@adeboer)

    I found it…thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘replace Search with Google search’ is closed to new replies.