2010-09-10

by Filip Stefansson
in Pure hacks

Highlight search-result

Code:

Instructions:

If you want to make it easier for your users that are using the serach-function, you can highlight the word they searched on. All changes goes in search.php.

Edit the class .search-excerpt as you want your highlight to look!

Related links:

http://www.wprecipes.com/how-to-enlight-searched-text-in-search-results