Forum Discussion

the_common_starling's avatar
the_common_starling
Copper Contributor
Sep 12, 2023
Solved

hide elements of navigation bars in sharepoint site

 

Along with the content of my Sharepoint site, there are two vertical navigation bars in the left part of the window: one that contains Start page, My sites, My lists, and the other that contains Home, Documents, Site contents.

 

 

For both navigation bars I would like to:
- hide any of its elements/items
- conditionally hide any of the elements - for example, I would like and element to be visible for the OWNER of the site, but not for MEMBERS

 

What I could achieve so far was to hide the elements of one of the navigation bars (the one with Home and Documents), by clicking the Edit item at the bottom, and then individually removing items.

 

 

I still don't know how to hide the elements of the other navigation bar (My lists is of particular interest for me), or how to conditionally display these elements, by the user type.

4 Replies

  • the_common_starling Also, if you want to disable personal Microsoft Lists creation for all users across tenant, you can do it using PnP PowerShell: 

     

    Connect-PnPOnline -Url "https://<tenant>-admin.sharepoint.com/" -Interactive
    Set-PnPTenant -DisablePersonalListCreation $true

     

    Replace <tenant> with your SharePoint tenant name. 


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

  • the_common_starling 

     

    The left most navigation (with My lists link) is called as a SharePoint app bar. Unfortunately, you cannot hide SharePoint app bar since March 31, 2023. There are some Microsoft unsupported ways to hide it but you should avoid doing it (check below link #2).

     

    Check all related details at: 

    1. Introducing a SharePoint app bar that features global navigation 
    2. How to remove all sites bar and change the domain name in SharePoint modern site 

     

    The second navigation is (Home, Documents, etc.) is called as a SharePoint site navigation. You can either move it top side below site title or completely hide it using SharePoint site navigation settings.

     

    Check detailed steps for making site navigation horizontal or hiding it at: New Navigation features for SharePoint team sites 

     

    Also, you can make the SharePoint site navigation links visible conditionally using audience targeting. Check this Microsoft official documentation for more information about this: Target navigation, news, files, links, and web parts to specific audiences 


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    • the_common_starling's avatar
      the_common_starling
      Copper Contributor
      I really appreciate your answer. Now I will go through the above links, and I will come back with feedback.
      Thanks once again !
  • It's better if you change the view of the quick launch menu if you feel that's it's creating a conflict
    with the global menu

    Cog -> Change the look -> Navigation -> Horizontal

Resources