guboogi
Member
Posted 4 years ago #
I recently installed Wordpress 1.5 and ever since Google-Hilite 1.2 (http://dev.wp-plugins.org/file/google-highlight/trunk/google-hilite.php?rev=204) has been acting very strange.
For example, if you go to my site, http://www.guboogi.com/, and use the "search" function on the right sidebar, it won't highlight any words, but if you go to http://www.guboogi.com/index.php (which should be the same exact page, if I'm not mistaken) and use the same searchbar, it'll highlight words. The search doesn't seem to highlight on any other page, either. Only http://www.guboogi.com/index.php. Does anyone have any ideas why this is? Thanks in advance.
guboogi
Member
Posted 4 years ago #
Okay, I think I solved it, actually. Apparently Google-Hilight gets the Wordpress root directory from the settings and then uses that to check where the search is coming from. If the search is coming from there, then it'll highlight it.
Since my site isn't the typical wordpress install, I have searches coming from sites that aren't the wordpress home and so it wouldn't highlight those. I've found a workaround that compensates for this, so it's all good.
DigitalArchivist
Member
Posted 4 years ago #
I'm on version 1.5 (http://www.davidmattison.ca/wordpress) and thanks to your tip updated the Google-Hilite to revision 204. I found the hiliter does not work at all in Firefox, and it also does not work if I search with the WordPress search engine in IE 6.x. If I search with Google, however, the search terms are highlighted. So, no highlighting with WordPress search engine in IE 6.x, but search terms are highlighted (except the title of the post entry) with Google in IE 6.x. If you have the Google Toolbar installed in IE, you can also toggle highlighting on and that feature will highlight the search term in the post title and replace whatever color you've used with the plugin hiliter with the Google Toolbar default yellow highlighting.