Forum Discussion

bhanu chintha's avatar
bhanu chintha
Iron Contributor
May 17, 2021

SharePoint Online Suite bar search box - Not hiding even after running OTB PS Script

Hi Everyone,

 

We have been trying to hide OOTB suite bar search box on site using Set-PnPSearchSettings in SPO Modern site.

 

Reference: Set-PnPSearchSettings (PnP.Powershell) | Microsoft Docs

 

We are using the below script.

Set-PnPSearchSettings -SearchBoxInNavBar Hidden -Scope Web


When we try to retrieve the search settings, we see the OOTB search is hidden.

Also we have noticed the below pattern:

  1. Search box seems to be visible for "Article" and "SingleWebPartAppPage" page layouts.
  2. However it seems to hidden for "Home" page layout.
    Is hiding the suite bar search box linked with any specific page layouts? Can you please let us know.
 
Thanks in advance.
 
Thanks & Regards,
Bhanu

 

Resources