How can I disable and remove the search this site bar on SharePoint server 2019?

Tevon2.0 1,106 Reputation points
2023-01-10T19:42:44.033+00:00

How can I hide or remove the "Search this site" bar from my site? Also, if kept what does the bar grant visitors access to? (Can they see files that that they don't have permissions for? Can they find pages where phrases or words are used?).

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Matthew Bechtol 491 Reputation points
    2023-01-10T19:48:04.047+00:00

    How to Exclude site from search SharePoint? Click on “Search and offline availability” under the Search group on the Site settings page. Choose “No” for Allow this site to appear in the search results option. Click on “OK” to save your changes.

    https://www.sharepointdiary.com/2015/06/exclude-sharepoint-site-list-from-search-results.html

    0 comments No comments

  2. Xyza Xue_MSFT 30,176 Reputation points Microsoft External Staff
    2023-01-11T08:24:10.2633333+00:00

    Hi @Tevon2.0 ,

    If you want to hide the "Search this site" bar, you need to hide the left navigation bar at the same time.Unfortunately, there is currently no OOTB way to hide the "Search this site" bar alone.

    If you keep the "Search this site" column, visitors can only search files for which they have permission above "read". Other files not granted permission cannot be searched. Other files not granted permission cannot be searched.

    The effect of hiding the whole left navigation bar is as follows:

    User's image

    Here are steps:

    1.Site Settings->Look and Feel->Navigation Elements.

    2.Un-check "Enable Quick Launch" option.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.