How to change the highlighted search result color in articles?
- 30 Jun 2022
- 1 Minuut om te lezen
-
Bijdragers
-
Afdrukken
-
DonkerLicht
-
Pdf
How to change the highlighted search result color in articles?
- Bijgewerkt op 30 Jun 2022
- 1 Minuut om te lezen
-
Bijdragers
-
Afdrukken
-
DonkerLicht
-
Pdf
There is no Dutch content available for this article, You are viewing the fallback version (English).
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 dit artikel nuttig?