1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Highlight search results

Stop searching for search results

  1. Brogan

    Brogan XenForo Moderator Staff Member

    Brogan submitted a new resource:

    Highlight search results - Stop searching for search results

    Read more about this resource...
     
    adwade, Chris D, Mirovinger and 2 others like this.
  2. RoldanLT

    RoldanLT Well-Known Member

    Such a brilliant Idea (y)
     
  3. Allan

    Allan Well-Known Member

    Good idea :)
     
  4. lmnop

    lmnop Member

    Nice!
     
  5. fredrikse

    fredrikse Active Member

    I doesn't work for me. I tried with this:

    Code:
    //Highlight search results
    .highlight
    {
        font-weight: bold;
        color: #FF0000;
    }
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    You're missing a 0 from #FF0000.

    Code:
    //Highlight search results
    .highlight
    {
    font-weight: bold;
    color: #FF0000;
    }
     
  7. fredrikse

    fredrikse Active Member

    I added the missing 0. But still there is no color in the search result. I have this code in extra.css for my current style.
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    It works for me, on a default and custom style.

    Perhaps there is something wrong with your EXTRA.css template further up?
    Or it could be a style issue.

    Adding !important may help.
     
  9. fredrikse

    fredrikse Active Member

    I'm using UI.X. I just upgraded my platform to the latest versin. Mabye @Mike Creuzer knows?
     
  10. teletubbi

    teletubbi Active Member

    I use also UI.X and it works for me.
     
  11. fredrikse

    fredrikse Active Member

    In what style do you alter extra.css?
     
  12. teletubbi

    teletubbi Active Member

    I have UI.X Dark

    UI.X Dark (the original theme, not visible for user)
    -UI.X Dark changing (here i made all changings, not visible to users)
    --Dark (visible to users)
     
  13. Aivaras

    Aivaras Active Member

    If a wildcard (*) is used in search the results are not highlighted. Can you confirm it?
     
  14. Brogan

    Brogan XenForo Moderator Staff Member

    If the highlight class isn't applied when using a wildcard then it won't be possible to style the results.
     
  15. Aivaras

    Aivaras Active Member

    Do you think it's worthwhile to make a suggestion in XenForo Suggestions to have the software apply such a class? From a user's perspective I don't see a difference between the need to highlight the whole word or a portion of it as both are equally a search result.
     
  16. Brogan

    Brogan XenForo Moderator Staff Member

    There's no reason why you can't suggest it.

    If the dev's consider it feasible and worthwhile, they may implement it.
     
  17. Aivaras

    Aivaras Active Member

Share This Page