|
Ok, so first, start by making a backup of the header.php file, in whichever
theme directory you are editing..
Then you can safely edit the header.php file, and restore it if things go horribly wrong.
Since you want to remove the and/or/phrase options, you can start by commenting the
line that starts with $radio_array = array( ...
Comment it by adding 2 forward slashes to the left of the line
//$radio_array = array( ...
No point in creating the array if it wont be used, right?
Next, remove the options from the form.. Easiest to use a block comment for that
At about line # 45.. which starts
while(list($key, $value) = each($radio_array)){
Add an opening comment block, which is forward slash, followed by an asterisk
/* while(list($key, $value) = each($radio_array)){
Then a few lines down, about line 52, you'll see
$html .= " /> " . $value . " ";
}
Add the closing comment block, which is an asterisk followed by a forward slash after the closing curly bracket
$html .= " /> " . $value . " ";
}
*/
That is essentially the same as adding the 2 forward slashes in front of every line in that code block..
Still, the search function needs to know what logic you plan to use, so you can hard code it into the form. I'd suggest using "and" because it should return the best results for multi word searches. For single word searches, it really doesn't matter which you use.
So, just after the */ you just added, you can add a hidden input to convey the search logic to use to the search function.
$html .= '<input type=hidden name=logic value=and>';
And that should do it.
|