How to change the highlighted search result color in articles?
  • 30 Jun 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How to change the highlighted search result color in articles?

  • Dark
    Light
  • PDF

When you have enabled the highlight matching search keyword in the articles option, the search keywords present in the article will be highlighted. By default, the search keyword color would be Yellow. You can customize the highlighted search keywords color in articles as per your requirement. The below action will change the color of the highlighted search keywords in the article for both light/dark modes.


Solution

2_Screenshot_highlight_search_color_customization_Portal

  1. Go to SettingsKnowledge base siteCustom CSS & JavaScript, and Custom CSS tab is the default selection
  2. Paste the below CSS snippet in the window
mark { 
background-color: green; 
color: white; 
}
  1. Update the desired color in the above snippet
  2. Click Save

Outcome

1_Screenshot_highlight_search_color_customization


Was this article helpful?