All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Highlight keywords

Paul Cripps 22 Apr 2014 19:37 question, complete

I see from the options we can select to Highlight keywords with an em, span, strong or mark, but is there anyway to add a class to these?

Replies

  1. Low 23 Apr 2014 02:39

    Currently, there is not. However, using css specificity, you could use an element with a certain class around the entry/excerpt and use that, eg:

    <div class="excerpt">{low_search_excerpt}</div>


    ...with css:

    .excerpt strong { ... }

  2. Paul Cripps 23 Apr 2014 08:42

    Makes sense, a good work around!

    Thank you.