Image: http://www.mario-kart.net/gamespy/images/8334help.gif

How do I remove the "Page - admin - 06/26/2008, etc." from my search results? I've learned how to remove this from pages and blogs, but I can't figure out the search results.

Thanks in advance!

Comments

kdrupal’s picture

I could be wrong but I think that would have to be handled in the theme.

JonMB’s picture

I looked under Modules/Search, but did not see any .theme files.

kdrupal’s picture

There are a few ways to do it. It will require modifying template.php. Google "drupal theme search results" and you will see a number of articles.

Good luck...

JonMB’s picture

http://drupal.org/node/175013

This seems helpful. I found it with your suggestion. Thanks.

JonMB’s picture

In Drupal 6, the easiest way I found to do this is this:

1. Go to your drupal\modules\search\search-result.tpl.php file. Find this:

  <?php if ($info) : ?>
  <p class="search-info"><?php print $info; ?></p>
  <?php endif; ?>

2. Comment out the code. In other words, replace it with this:

  <?php // if ($info) : ?>
  <p class="search-info"><?php // print $info; ?></p>
  <?php // endif; ?>

Works for me!