New answers tagged

0

This will helpful for you... Use this code at function.php function wps_highlight_results($text){ if(is_search()){ $sr = get_query_var('s'); $keys = explode(" ",$sr); $text = preg_replace('/('.implode('|', $keys) .')/iu', '<strong class="search-excerpt">'.$sr.'</strong>', $text); } return $text; } ...


Top 50 recent answers are included