This is the OLD WebbyZone archive. Click Here if you wish to check out the all NEW WebbyZone.

Highlight Search Terms in WordPress with jQuery

Post Thumbnail of Highlight Search Terms in Wordpress with jQuery
 Web Development       

Highlighting search terms in content is a great way of displaying the relevancy of the page to its viewers. In Wordpress, this can be achieved with the help of a simple tweak. Both title and post contents can be highlighted using the following code snippet.
In the WordPress theme’s function.php file, paste the following code:
function hls_set_query() {

24 September 2009  1 comment
CrossBlock designed by ZenVerse