change Your search yielded no results I would like to set a custom message for my search using the core Drupal search module. Right now it says:


  Your search yielded no results Check if your spelling is
  correct. Remove quotes around phrases to search for each word
  individually. bike shed will often show more results than "bike
  shed". Consider loosening your query with OR. bike OR shed will
  often show more results than bike shed.
The core Drupal search module uses several template files that dictate both how search results are displayed, and what's displayed when there are no search results.

If you're already using a custom theme on your Drupal site, the best way to customize those would be to copy and paste the entire 'search-results.tpl.php' file from the search/ module folder into your own custom theme subfolder.

Open that file up for editing and you'll see the following at the bottom:

&lt;?php else : ?&gt;
  &lt;h2&gt;&lt;?php print t('Your search yielded no results');?&gt;&lt;/h2&gt;
  &lt;?php print search_help('search#noresults', drupal_help_arg()); ?&gt;
&lt;?php endif; ?&gt;


This is what's displayed if search results are not found (thus the 'else')...  Modify the text to be anything you want here.  The second line, which calls the search_help() function is the one that displays the search suggestions.  Feel free to replace that too....

And as always, before you can see your changes, you'll probably need to clear cache!

Let us know if this works for you!