I am setting up my Drupal site search, and I cannot figure out how to remove or hide the list that is displayed when there are no search results. The list I am referring to is:

"• Check if your spelling is correct.
• Remove quotes around phrases to match each word individually: "blue smurf" will match less than blue smurf.
• Consider loosening your query with OR: blue smurf will match less than blue OR smurf."

However I would like to keep the text that tells you that "Your search yielded no results."

Any help you can provide would be great, thanks.

Comments

thekenshow’s picture

You can override strings in the settings.php file for a site (assuming you have access to that file): Here's an example (I had to dig into the search module to figure out that the entire list was done as a single string):

$conf['locale_custom_strings_en'] = array(
  '<ul>
<li>Check if your spelling is correct.</li>
<li>Remove quotes around phrases to match each word individually: <em>"blue smurf"</em> will match less than <em>blue smurf</em>.</li>
<li>Consider loosening your query with <em>OR</em>: <em>blue smurf</em> will match less than <em>blue OR smurf</em>.</li>
</ul>' =>
  '<ul>
<li>Check that your spelling is correct.</li>
<li>Remove quotes around phrases to match each word individually: <em>"fire alarm"</em> will match less than <em>fire alarm</em>.</li>
<li>Consider loosening your query with <em>OR</em>: <em>fire alarm</em> will match less than <em>fire OR alarm</em>.</li>
</ul>',
);

PS. Or: http://drupal.org/project/annihilatesmurfs

Cheers
Ken