Forum Discussion
bhanu chintha
May 17, 2021Iron Contributor
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.
Thanks in advance.
Thanks & Regards,
Bhanu
- bhanu chinthaIron ContributorThis is being accepted as a bug and will be fixed sooner by Microsoft.
https://github.com/pnp/powershell/issues/675
Thanks & Regards,
Bhanu
Also we have noticed the below pattern:
Is hiding the suite bar search box linked with any specific page layouts? Can you please let us know.