Forum Discussion

wit4r7's avatar
wit4r7
Brass Contributor
Apr 08, 2020
Solved

Same navigation for several hub sites

Hey,   we are currently working on a concept to move from our Classic SharePoint Online to the more modern Modern UI in combination with MS Teams.   Currently we use Managed Meta-Data for our top...
  • Swaminathan Sriram's avatar
    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.