How do you show filters by default on search page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2020 07:49 AM
When you view the results on the kb_search page, it hides the filters by default.
How do you get it to show the filters by default instead? I reviewed the code for the knowledge search widget on that page and looked at the options, but I am obviously missing something.
Thanks,
Shannon
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2020 08:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2020 07:57 AM
Thanks for this info! After adding this line, the filters are displayed by default on the kb_search page, however, if I do a search - the filters are hidden when the search results are displayed. Do you know of a way to get them to keep showing (until the user clicks to hide)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 02:16 AM
If you remove this line from the modified "Knowledge Search" Widget's "Link Function" section:
c.hideFilters();
it should work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2022 02:31 PM
I was able to do this* with these changes...
- On the Knowledge Search page, I added this to the page-specific CSS. This forces the filter options to always display.
.hide-filters { // replicates behavior of .show-filtersdisplay :block;}.expand-width { // replicates behavior of .original-widthwidth :75%;} - On the Knowledge Search widget instance, I added this to the CSS. This hides the toggle button for the filtering options.
.filter-class{display: none;}
Susan Williams, Lexmark