Skip Navigation
Highlighting keywords in a search
Answer ID 2206   |   Last Review Date 07/08/2019

When I search on a word or phrase on the end-user pages, can the keywords be highlighted somehow? 


Oracle B2C Service Customer Portal (CP) Version CPv2 and CPv3.x


In CPv2 or CPv3, the highlight attribute must be enabled on the widget that is used to display results (for example, Ouput/DataDisplay or Search/KeywordText2).

To edit the color of the highlighting, the user must edit the background color in the themes/{YOUR_THEME}/site.css file.

For example:

/** general search term highlighting **/

For information on how this feature works, refer to Answer ID 7838: How do search results on Customer Portal get highlighted?.