- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 08:11 PM
Hi all
How do I change the colour of the search results in the Portal. For example, in the attachment, I want the word "computer" background to change its colour to yellow.
Regards,
Ash
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2023 09:44 PM
Hi Ash,
the CSS record you are looking for is probably called "ec-theme-faceted-search" on the sp_css table. Look for the .mark.highlight attribute and change the background color. If you want it to be yellow it might be enough to just comment out the line for the background color. I would suggest to copy the style sheet instead of modifying the OOB record. Then you will need to include this new style sheet in your ESC theme. Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 10:44 PM
Thankyou !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 03:10 AM
Background
AI Search results and the Search Facet Filter container has a border of 1px. The search term has a highlighted pre-defined color based on theme. However, at present there are no baseline theming variables for overriding them - if the customers want to override
e.g. remove the borders from the search results container and search facet filter and change the hit highlight color to match customer brand theming.
To address the above mentioned issue, this KB article lists the workaround steps to achieve the same.
Workaround
1. For overriding the css properties at theme level - create a new Style Sheet record in sp_css table (<instance_url>/sp_css.do?sys_id=-1)
1.1 To change the hit highlight color (i.e. background color of the search keyword) so that it is brand compliant:
1.2. To remove the border for search results container: