• Hi there

    I just added your plugin to my website (https://www.feuerwehr-muenster.com) and search result quality improved. Thanks for that!

    I would like use the “Highlight search term” feature but search terms are not highlighted. The terms are not even wrapped with any code.
    I added

    .bsearch_highlight{
    	color: red;
    }

    to the style section of the plugin.

    Any idea on this?

    Thanks,
    M.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Ajay

    (@ajay)

    I just searched on your site: https://www.feuerwehr-muenster.com/?s=die

    And, notice that the word die is in red

    Thread Starter mkk84

    (@mkk84)

    Hi

    I probably misunderstood this functionality then:
    Yes, the search term is highlighted on the summary page of the results. I expected it to be highlighted within the actual post/page/… that was found. When I click on the link of a search result, I see the ‘plain’ post/page/… without any highlighting.

    Plugin Author Ajay

    (@ajay)

    That’s right – at this stage it is on the search results page only. But, I’ll work on getting this onto the referred pages in a future version

    Seconding the idea to make highlighted search terms display on the linked page. Some pages with high relevancy don’t have the queried word/s in the excerpt. Highlighting on the linked page would at least make them easier to see once you got there.

    Also wish-list – highlighting by changing the background colour behind the text (like a highlight marker) rather than changing the colour of the text. Inputting a hex value in the settings for the desired contrasting background in both the search results and on the linked page would put a lot of visual emphasis on what the reader was looking for. And/or bolding the queried words would be a help (user option perhaps), especially if the background-colour change idea isn’t feasible.

    Cheers –

    Plugin Author Ajay

    (@ajay)

    Are you thinking background colour change for highlighting?

    The plugin adds a .bsearch_highlight class which can be styled as per your choice using the style box.

    I’ve put this on v2.6.0 as a priority.

    Ah, this one is my own fault. I confess that I am not as fluent in CSS as I should be, or I’d have figured the background-colour highlighting for myself, since I was already editing the text colour in that class. Mea culpa. I learn things as I go along, usually. Already made the change, looks great.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Highlighting search terms not working’ is closed to new replies.