WordPress OSINT, maintenance or security needs? Reach out!
TLDWP

Plugin: highlight-search-terms (Used by 61 domains)

Highlight Search Terms

Highlights search terms within WordPress generated search results, both on the search results page and on each linked post page itself.

This plugin is light weight and has no options. It started as very simple fusion between How to Highlight Search Terms with jQuery – theme hack by Thaya Kareeson and Search Hilite by Ryan Boren. It has since evolved with many optimizations, HTML5 and bbPress support.

Since version 1.6 it no longer depends on the jQuery library.

Features

  • Click through highlights: Highlights not only on WP search results page but also one click deeper inside any of the found pages
  • Character and case insensitive (lenient) highlighting
  • BuddyPress / bbPress compatibility: highlighting within forum searches
  • Caching (WP Super Cache) compatibility
  • Search terms wrapped in double quotes now considered as single term

What does it do?

This low impact plugin finds all search terms on a search results page inside each post and highlights them with a ... tag.
Note that N is a number starting with 0 for the first term used in the search phrase increasing 1 for each additional term used. Any part of a search phrase wrapped in quotes is considered as a single term.

What does it NOT do?

There are no CSS style rules set for highlighting. You are free to use any styling you wish but to make the highlights visible in browsers that do not support HTML5 like Internet Explorer 8 or older you absolutely need to define at least one rule.
Modern HTML5 browsers will use their own highlighting style by default, which usually is a yellow marker style background.

So what do I need to do?

In most cases, it should just work. But you can do two things to ensure backward browser and theme compatibility:

  1. Define CSS rules: There are no configuration options and there is no predefined highlight styling. You are completely free to define any CSS styling rules in your themes main stylesheet (style.css) or the Custom CSS tab if the WordPress theme customizer.
    You can find basic instructions and CSS examples in the FAQ’s.

  2. Check your theme: In most up to date themes (including WP’s own default theme) post and page content is shown inside a div with class hentry. This means search terms found in post and page content will be highlighted but not similar terms that accidentally show in the page header, sidebar or footer.
    If your current theme does not use the hentry class (yet), this plugin will look for IDs content, main and finally wrapper but if none of those are found, it will not work for you out of the box. See the last of the FAQ’s for ways to make it work.

Available hooks and filters

  1. hlst_query_vars – The array of WordPress query variables that the plugin will identify as a search query. Must return an array. Default: ['search_terms','bbp_search'] (WordPress abd bbPress search)

  2. hlst_input_get_args – An array of GET variables that the plugin will identify as a search query. Must return an array. Default: ['hilite'] (for click-through highlighting)

  3. hlst_selectors – The array of possible HTML DOM element identifiers that the script will try. The first viable identifier it finds elements of will be scanned for search terms to mark, the rest is ignored. So the order is important here! Start with the element closest to, but still containing all the post/page title, excerpt or content.

  4. hlst_events – The array of DOM event listeners that the inline script will watch for. Default: ['DOMContentLoaded','post-load'] (on Document Ready and for Jetpack Infinite Scroll and others).

  5. hlst_inline_script – The inline script that will be added to the plugin script file. Can be used to add to or alter the inline script. Must return a string.

Known issues & development

  1. If your theme does not wrap the main content section of your pages in a div with class β€œhentry” or HTML5 article tags, this plugin might not work well for you out of the box. However, you can make it work. See the last of the FAQ’s for an explanation.

  2. Josh pointed out a conflict with the ShareThis buttons plugin. Since then, that plugin has been completely rewriten so please let me know if the problem still exists. Thanks!

Please file bug reports and code contributions as pull requests on GitHub.

DomainExposuresHeadersLast Checked
m*n*r*n*.c*m.au F Aug 2, 2026
r*e*n*m*g*z*n*d*e*s*l*o*f.de (WP 5.2.2) F Aug 2, 2026
f*s*i*a*e*u*a*i*n*.net (WP 4.9.9) D Aug 1, 2026
2*t*.su F Aug 1, 2026
a*d*t*i*v*s*.com D Jul 30, 2026
i*l*m*e*t.com (WP 4.7.29) F Jul 29, 2026
b*m*.ru (WP 5.0.3) F Jul 28, 2026
v*o*a*o*d*s.com (WP 4.0.1) F Jul 26, 2026
a*i*s*o*s*r*h*p*e*s.com D Jul 26, 2026
n*d*x*.com (WP 4.8.25) F Jul 25, 2026
t*1*6*.com (WP 7.0.2) F Jul 24, 2026
k*u*l.org F Jul 24, 2026
m*l*f*a*a*h*s*.org F Jul 23, 2026
i*f*t*c*f*.com F Jul 23, 2026
s*a*n*l*v*.com D Jul 22, 2026
b*e*s*f*e*i*g.support (WP 4.7.3) F Jul 22, 2026
s*a*a*g*r*c*u*i*.com (WP 4.9.1) F Jul 22, 2026
f*v*u*a.com (WP 7.0.2) F Jul 20, 2026
e*s*n*e*g*n*s*h*e*l.com (WP 3.5.2) F Jul 20, 2026
n*l*x.pl (WP 6.9.5) F Jul 19, 2026
a*u*h*v*e*r*i*g.com (WP 7.0.2) F Jul 18, 2026
k*v*.com (WP 7.0.2) F Jul 18, 2026
s*u*h*i*d*e*e*t*i*.com F Jul 18, 2026
h*g*p*r*t*u*a.com F Jul 17, 2026
h*g*p*r*t*n*r*h*e*t.com F Jul 17, 2026
h*g*p*r*t*a*e*i*a.com F Jul 17, 2026
h*c*a*t*-*o*m*n*s*t*o*.com (WP 4.5.33) F Jul 17, 2026
m*m*a*k.com (WP 7.0.1) F Jul 16, 2026
n*o*w.org (WP 5.7.15) F Jul 16, 2026
m*s*e*s*r*e*s*m*n*r*.com F Jul 14, 2026
m*r*e*i*g*t*a*e*y.com F Jul 12, 2026
a*a*e*e*e.com (WP 3.6) F Jul 12, 2026
a*v*i*l*a.com (WP 4.9.26) F Jul 12, 2026
u*e*i*p*.c*.jp F Jul 12, 2026
h*n*y*a*n*o*.com (WP 7.0.1) F Jul 11, 2026
a*e*u*o*s*a*s.c*m.hk F Jul 10, 2026
w*n*i*h*e*l*s*a*e.com F Jul 9, 2026
s*h*-*f*s.fr (WP 6.1.3) F Jul 9, 2026
g*a*n*l.com F Jul 9, 2026
q*r*u*.com D Jul 8, 2026
e*i*e*o*.ro F Jul 8, 2026
l*l*y*o*u*.com (WP 7.0) F Jul 7, 2026
s*s*a*t*.com (WP 5.2.12) F Jul 7, 2026
j*m*a*g*o*b*.com (WP 4.9.29) F Jul 6, 2026
p*n*f*i*.com (WP 6.0.12) F Jul 6, 2026
w*l*i*g*o*l*c*s*i*h*.com F Jul 5, 2026
l*x*l*b.com F Jul 5, 2026
f*z*t*a*a*i*.at (WP 4.7.33) F Jul 4, 2026
l*e*y*n*e*i*r*.com F Jul 3, 2026
g*l*n*u*.com (WP 4.9.15) F Jul 3, 2026
w*s*-*.com (WP 5.1.19) F Jul 2, 2026
a*i*h.it D Jul 1, 2026
k*e*i*g*a*e.com F Jul 1, 2026
u*t*a*n*p*o*u*t*.com F Jun 30, 2026
j*o*m*s*a*.com F Jun 30, 2026
e*t*r*h*f*.ru F Jun 29, 2026
a*h*n*d*o*i*.gr F Jun 20, 2026
a*w*l*l*f*t*a*l*.com F Jun 16, 2026
c*v*o*y.cz (WP 4.9.29) F Jun 13, 2026
c*e*s*.org (WP 5.1.19) F Jun 12, 2026
s*u*e*a*d*s*t*m*u*o*.com (WP 5.0.25) F Jun 11, 2026

Top 50 Plugins

Plugin Count
elementor 1,769,947
contact-form-7 1,751,151
elementor-pro 1,052,329
woocommerce 816,084
revslider 608,676
jetpack 454,679
js_composer 419,902
wp-rocket 342,079
essential-addons-for-elementor-lite 264,695
gravityforms 257,300
complianz-gdpr 257,186
google-site-kit 232,602
cookie-law-info 228,240
instagram-feed 224,724
sitepress-multilingual-cms 210,596
header-footer-elementor 206,656
google-analytics-for-wordpress 205,675
bluehost-wordpress-plugin 192,331
elementskit-lite 180,017
gutenberg 167,120
cookie-notice 148,816
litespeed-cache 143,825
gtranslate 124,781
wpforms-lite 123,738
the-events-calendar 122,341
astra-sites 113,144
popup-maker 109,698
woocommerce-payments 109,299
gutenberg-core 103,141
tablepress 102,135
honeypot 97,728
astra-addon 93,740
wp-smushit 90,814
duracelltomi-google-tag-manager 90,306
layerslider 89,283
all-in-one-seo-pack 89,071
bb-plugin 86,901
coblocks 86,693
akismet 84,979
premium-addons-for-elementor 84,367
cleantalk-spam-protect 82,573
ml-slider 81,991
mailchimp-for-wp 81,773
megamenu 80,196
woocommerce-gateway-stripe 79,441
jet-engine 77,892
fusion-builder 77,057
ewww-image-optimizer 76,627
wp-pagenavi 76,457
smart-slider-3 76,121

Top 50 Themes

Theme Count
hello-elementor 620,749
Divi 496,071
astra 413,940
flatsome 138,152
Avada 120,987
generatepress 114,820
oceanwp 80,309
kadence 78,841
pub 72,283
enfold 68,738
salient 65,153
twentyseventeen 54,318
bb-theme 53,400
betheme 52,414
twentytwentyfour 52,234
blocksy 50,827
cocoon-master 49,206
dt-the7 45,445
twentytwentyfive 44,937
woodmart 43,254
neve 38,122
Avada-Child-Theme 36,904
gox 36,229
h4 36,037
bridge 31,326
twentytwentyone 30,291
lightning 29,946
twentytwenty 28,762
swell 27,969
bricks 26,481
Impreza 26,076
Newspaper 24,176
twentytwentythree 22,095
epik-redesign 19,143
twentytwentytwo 18,767
uncode 18,501
pro 17,626
twentysixteen 17,602
sydney 16,502
storefront 16,314
Total 14,390
hello-theme-child-master 14,021
factory-templates-4 13,731
themify-ultra 12,948
extendable 12,765
hestia 12,582
yootheme 12,515
yith-wonder 12,108
porto 11,949
twentyfifteen 11,874