SearchWP Term Highlight

Term Highlight wraps search terms in a span within titles and excerpts so you can style them to match your site. It also builds excerpts that contain at least one search term.

Version2.1.14
Last UpdatedAugust 7, 2018
TypeWordPress Plugin
LicenseGPL v2 or later
Live DemoView demo →

Or join VIP and download this plus every other theme & plugin for free.

Already a member? Log in

100% GPL · Original files · Unlimited sites

  • Original, unmodified files — delivered exactly as distributed by the developer
  • GPL licensed — use it on unlimited websites, personal or client
  • Free updates — new versions appear here as soon as they are released
  • Verified downloads — every file is integrity-checked (SHA-256) before release

Distributed under the GNU General Public License. Not affiliated with the original developer; official support, license keys and developer-hosted services (such as one-click updates) are available only from the developer.

Secure checkout with PayPal · GPL licensed · Instant download

Description

Term Highlight is a WordPress plugin that highlights the search terms people used on your search results. It wraps those terms in a span you can target with CSS, and it can generate an excerpt that contains at least one search term.

Key Features

  • Highlights in The Loop – Search terms are wrapped in a span inside titles and excerpts returned by native WordPress searches, so you can style the highlight with your own CSS.
  • CSS-targetable highlight span – Each highlighted term is wrapped in a span with the class searchwp-highlight, which you can target in your stylesheet.
  • Excerpts with a search term – The plugin replaces the excerpt on search results with one that contains at least one of the search terms, taken from the main content.
  • Excerpt from custom fields – A function lets you pull an excerpt from the post content or from a custom field that contains at least one search term.
  • Manual highlighting function – For content outside The Loop, you can send your content through the highlighter yourself before outputting it.

Who Is It For

This plugin is for WordPress site owners and developers who use SearchWP and want visitors to spot their search terms on results pages and destination pages. It suits anyone comfortable adding a small snippet or CSS rule to control how the highlight looks.