Support » Plugin: SearchAutocomplete » Highlight matching string

Viewing 5 replies - 1 through 5 (of 5 total)
  • That would be awesome!

    I modified search-autocomplete.js to include a _renderItem function that highlights the matched term. The modified function is on pastbin at http://pastebin.com/XzLbUrW4

    The plugin uses the “min” version of this function so you would need to change the searchautocomplete.php program to enqueue your modified version.

    Plugin Author Gabe Shackle

    (@hereswhatidid)

    Very cool addon. I’ll include this in the next release with a custom class name.

    Plugin Author Gabe Shackle

    (@hereswhatidid)

    This has been added to the latest release (2.0.4). Matched strings are now surrounded with:

    <span class="sa-found-text"></span>

    So you can style that directly in your theme’s CSS to control how it looks.

    Plugin Author Gabe Shackle

    (@hereswhatidid)

    Marking this as resolved due to inactivity.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Highlight matching string’ is closed to new replies.