I tried to hide the left Navigation bar and it works without problems. The only problem now is that when I go under: Site settings > User Permissions > People and Groups
It hides me my Groups I created there on the left side. Is there any possibility of hiding the left navigation bar in all sites and leaving "People and Groups" alone?
I made my own css file and used this to hide the Navigation bar:
MyOwnCss.css:
#sideNavBox { DISPLAY: none }
#contentBox { margin-left: 0px }
Best regards
Andrew
Best Answer
Solution:
Try below css (instead of yours):
Explaination:
Div with id
sideNavBox
is the main container of left navigation box. But it is not the actual container that holds the quick links.Actually quick links is contained by another div with class
ms-core-sideNavBox-removeLeftMargin
which is a child div of div with idsideNavBox
.Now people and groups left panel items are not contained in this div with class
ms-core-sideNavBox-removeLeftMargin
but is instead contained in div above it with classms-ql-additionaltopsection
(as shown in above image).So our solution above hides this actual quicklinks containing child div:
instead of parent container
You can find my detailed blog on this matter here.