Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #585269

    the search-results page forwards you to a page or post but the searched item itself -? you have to look yourself for it.

    https://wordpress.org/plugins/highlight-search-terms/

    that little plugin here manages exactly this for you by highlighting those words in the content.

    • This topic was modified 8 years, 2 months ago by Guenni007.
    #586461

    Hey,

    Thanks for sharing this information.

    Best regards,
    Josue

    #1114262

    @guenni007 have you managed highlighting search terms without an additional plugin?

    #1114812

    Hi,

    That’s not available in the theme by default, so you need to use another plugin like the one suggested above. Once you visited the searched posts, the search keyword or the search parameter itself is already lost. The challenge is to find a way to preserve the value of that parameter once you redirect to the searched posts and then use it to highlight the related content.

    Best regards,
    Ismael

    #1114825

    The plugin still works well – you only had to set a rule for the class that will wrap the searched terms.
    f.e.

    .hilite {
      background: #fff67a !important; 
       color: #000 !important; 
    }
    #1114832

    thank you, Guenni, I thought I could avoid another plugin.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.