Remove highlighting of search terms in Plone
If you haven’t noticed already, go to Google and do a quick search for your Plone site. Then click on your site. Plone will then highlight all of the searched terms.
This can be helpful, but also distracting. Plone will try to match the highlight color with the over all color scheme of your site. However, if you want to disable this feature, here’s what you do:
- Go to the ZMI → portal_skins → plone_ecmascripts → highlighsearchterms.js
- Hit Customize
- add return false; just before function highlightSearchTerms(terms, startnode) { and function highlightSearchTermsFromURI() {
- Then hit save and you’re done!