This setting only applies to the search box in the suite navigation bar. To go back to showing the search box, run the commands again with the value provided to "SearchBoxInNavBar" parameter to “Inherit”. To change this setting for a given site use this command: Set-PnPSearchSettings -Scope Web -SearchBoxInNavBar HiddenĪlternately, if you want to set it for all the sites in a site collection, you can use this command: Set-PnPSearchSettings -Scope Site -SearchBoxInNavBar HiddenĪfter running these commands, the search box will no longer show up in the navigation bar on top of your page. ![]() You can choose to hide the suite navigation bar search box if you want to prevent your users from searching or to use a custom search box implementation. There is no equivalent setting for site collections. This setting applies at the individual site level. To search across the Hub, use “Hub” as the SearchScope value. To go back to the default setting, run the command again with the value “DefaultScope". In some cases, you may want to change these defaults to always search over the whole organization, or across the hub a site is associated with, without needing an additional click.Īs a site owner, you can change these defaults using the following command: Set-PnPSearchSettings -SearchScope TenantĪfter running this command, the site that was previously showing results from the current site by default will start to show results from the whole organization. Hub sites search over all sites in the hub. ![]()
0 Comments
Leave a Reply. |