Gravatar for puneetpande@gmail.com

Question by ppande, Apr 7, 2015 11:16 AM

Bold Search Terms in Coveo for Sitecore

Hi,

Is there an easy way to bold the search terms in search results in Coveo for Sitecore free edition. I saw an article about customizing Search Interface through a tool: http://onlinehelp.coveo.com/en/ces/7.0/administrator/activatingsearchinterface_options.htm

But I don't have this Search Interface tool. I only have the Admin Tool installed.

Thanks!

1 Reply
Gravatar for slangevin@coveo.com

Answer by Simon, Apr 7, 2015 11:30 AM

You are not looking at the right documentation. The Coveo for Sitecore documentation is here: https://developers.coveo.com/display/public/SC201504/Coveo+for+Sitecore+April+2015+Release+Home

Simply go in the Coveo css file (do a copy of it to keep the original) and change it manually:

.CoveoResult .highlight { font-weight: bold; }

Cheers,
Simon

Gravatar for puneetpande@gmail.com

Comment by ppande, May 18, 2015 1:39 PM

So, I noticed that on a OOTB Coveo Search Page highlight works without any changes. It seems like some javascript is adding to the search terms. But we have a customized search page and this is not working for us. If i manually add in Chrome dev tools, then I can see the term getting highlighted. What could I be missing.

Thanks!

Gravatar for slangevin@coveo.com

Comment by Simon, May 19, 2015 11:38 AM

Coveo OOTB pages use the Coveo Search and Coveo search resources sub-layouts/rendering. Theses components will load the JS dependencies.

Ask a question