Skip to main content
NICE CXone Expert

We will be closed on Wednesday, December 25th in observance of Christmas

Expert Success Center

Hide file attachments from search results

Applies to:
All MindTouch Versions
Role required:
Admin
Hide file attachments from search results.

How to hide files from search

  1. On the Expert toolbar, select Site tools > Control panel.
  2. Click Custom Site CSS
  3. In the All Roles CSS field enter the following code:

/* Hide file attachments from search results */

#search-results li.type-file{
    display:none;
    }

If you want your content managers and administrators to find file attachments through search, add the code to the Anonymous CSS and Community Member CSS fields only.

Include a comment such as /* Hide file attachments from search results */ in the above example to remind yourself and other coders what the snippet of code accomplishes.

Example

Before

search-results-file-attachments-displayed.png

After

search-results-file-attachments-hidden.png

Depending on how many file attachments are hidden from results, you may notice a double white or double gray row, instead of the alternating white and gray pattern.

 

  • Was this article helpful?