Support » Plugin: Highlight Search Terms » How to keep only Highlighted Words

  • Hello! First of all, thank you very much for this great plugin!

    I adjusted my search page so it could show all product variations, and then the text gets highlighted accordingly, but the other variations are there taking up space on the page.

    Question is, how could I keep the other variations from showing up?

    https://i.imgur.com/wNitgAd.png

    Here’s a print screen, each variation is shown per line, but in this case I’d like to keep the hole row of the variation, not only the word, and hide the other variations. I know you guys are far smarter, how could I achieve that?

    Each row is in a div, and the text inside a <label>

    Thank you again!

Viewing 1 replies (of 1 total)
  • Plugin Author RavanH

    (@ravanh)

    Hi, this plugin only does the highlighting, it does not change search results. The variations are there (I suppose) because the internal search engine returns them as results, so you if you want to change that you’ll need to change the search engine or its parameters. There are other plugins out there that can do that…

    The most used one as far as I know is https://wordpress.org/plugins/relevanssi/ but you could also give https://wordpress.org/plugins/advanced-woo-search/ a try if you are using Woocommerce for your products.

Viewing 1 replies (of 1 total)
  • The topic ‘How to keep only Highlighted Words’ is closed to new replies.