Skip to main content

Is there any way to remove all of these filters? They are standard fields on Knowledge Articles and can't be removed from the search layout. These aren't fields that our portal users need to see or know about or even be able to search. Even if there is a CSS hack to hide them, I'd be OK with that. 

Hide standard fields from Results Layout filters

 

 

6 answers
  1. Aug 5, 2025, 7:51 PM

    "Change the search layout" is not the right answer. That changes which fields show up in the search results such as title, date, summary, whatever. It does not impact the filters.  

     

    "Change the search manager" is also wrong because you can't remove required fields.

     

    I grabbed the HTML for the Filters section and passed it into Claude and asked for the CSS to target each filter and it was able to eventually work it out

     

    Here's the code that you need to your LWR site to hide all of the filters. Comment out any lines for filters you want to keep.

     

    <​style>

    lightning-combobox:has(button[aria-label="Language"]),

    lightning-combobox:has(button[aria-label="Publication Status"]),

    lightning-combobox:has(button[aria-label="Products"]),

    lightning-combobox:has(button[aria-label="Audience"]),

    lightning-combobox:has(button[aria-label="Issues"]),

    search_filters-filter-input:has(button[aria-label="Language"]),

    search_filters-combobox:has(button[aria-label="Language"]),

    search_filters-combobox:has(button[aria-label="Publication Status"]),

    search_filters-combobox:has(button[aria-label="Validation Status"]),

    search_filters-combobox:has(button[aria-label="Article Record Type: Name"]) {

      display: none !important;

    }

    <​/style>

     

    #LWR

     

     

     

0/9000