-
Print
-
DarkLight
-
PDF
How to change the highlighted search result color in articles?
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
- Go to Settings → Knowledge base site → Custom CSS & JavaScript, and Custom CSS tab is the default selection
- Paste the below CSS snippet in the window
mark {
background-color: green;
color: white;
}
- Update the desired color in the above snippet
- Click Save
Outcome
Was this article helpful?