Tag Archives: jQuery

How To Highlight Search Terms With jQuery

How To Highlight Search Terms With jQuery

by Jerome

August 25 th

Make a better search experience for the user by highlighting any search terms with jQuery. Simply open your functions.php file and copy and paste the code below: function hls_set_query() { $query = attribute_escape(get_search_query());   if(strlen($query) &gt; 0){ echo ‘ <script type="text/javascript"><!–mce:0–></script> ‘; } }   function hls_init_jquery() { wp_enqueue_script(’jquery’); }   add_action(’init’, ‘hls_init_jquery’); add_action(’wp_print_scripts’, ‘hls_set_query’); [...]

Continue Reading

Let Google Host Your jQuery Files

Let Google Host Your jQuery Files

by Jerome

July 27 th

I’m all the time looking ways to improve blogs performance. Today I came accross this great plugin called “Use Google Libraries“. It will improve your blog speed performance and save you some bandwidth on your server by instead of pulling your jQuery files from your WordPress install you will use the same file pull from [...]

Continue Reading