In this article, we will see how to hide the left navigation in SharePoint site There are many ways for hiding the left navigation in the SharePoint. Here is the simplest way to hide it.
1. Master.FindControl("PlaceHolderLeftNavBar").Visible = false;
2. Place a content editor in the page you want to hide the left navigation pane in the site and add the following code in the source editor which will hide the left navigation bar.
1. Master.FindControl("PlaceHolderLeftNavBar").Visible = false;
2. Place a content editor in the page you want to hide the left navigation pane in the site and add the following code in the source editor which will hide the left navigation bar.
<style> .ms-navframe { display:none; } </style>
That’s it. We have easily hide the left navigation bar with a simple code.
This worked great for me - thankyou!
ReplyDeleteI saw another post that offered this, but it did not work for me.
/Style/ (had to replace tag characters to post comment)
body #s4-leftpanel
{
display: none;
}
.s4-ca
{
margin-left: 0px;
}
//style/