Forum Discussion
Same navigation for several hub sites
- Apr 09, 2020
Hi wit4r7,
Yes, you could utilize Set-PnPHubSite cmdlet from SharePoint PnP PowerShell to toggle the Show or Hide Hub Name in Navigation parameter.
Example - Set-PnPHubSite -Identity <YourHubSite> -HideNameInNavigation:$true
Set $true in the above command to Hide your default Hub Site link in the Hub Navigation and,Set $false in the above command to Show your default Hub Site link in the Hub Navigation
Please note that when you run the above command from PowerShell, the changes may not be reflecting immediately and you may have to wait for 30-60 minutes for the changes to reflect in your Hub Navigation. Therefore, you may have to plan accordingly when you make changes via PowerShell.
Please refer this link for the documentation - https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnphubsite?view=sharepoint-ps
I hope this is helpful, please like it or mark it as a solution if it answers your query.
Thanks.
Is there a PowerShell command for doing the same?
Hi wit4r7,
Yes, you could utilize Set-PnPHubSite cmdlet from SharePoint PnP PowerShell to toggle the Show or Hide Hub Name in Navigation parameter.
Example - Set-PnPHubSite -Identity <YourHubSite> -HideNameInNavigation:$true
Set $true in the above command to Hide your default Hub Site link in the Hub Navigation and,
Set $false in the above command to Show your default Hub Site link in the Hub Navigation
Please note that when you run the above command from PowerShell, the changes may not be reflecting immediately and you may have to wait for 30-60 minutes for the changes to reflect in your Hub Navigation. Therefore, you may have to plan accordingly when you make changes via PowerShell.
Please refer this link for the documentation - https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnphubsite?view=sharepoint-ps
I hope this is helpful, please like it or mark it as a solution if it answers your query.
Thanks.