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

Regular Contributor

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,


1 Reply
This is being accepted as a bug and will be fixed sooner by Microsoft.

Thanks & Regards,