Quantcast
Channel: Client Side – Ved Mishra | Microsoft and Blockchain Engineer
Viewing all articles
Browse latest Browse all 17

Hide the Left Navigation

$
0
0
There is a small trick to hide left navigation in SharePoint without the need of modifying/chagning the master page.

In SharePoint 2007

  1. Go to the page where you wan to hide the left nav. 
  2. Add a content editor web part. Go to source editor.
  3. Add this content. <style>.ms-navframe{ display:none; }</style> and save.

In SharePoint 2010, you need to add the following to Content Editor Web Part
<Style>
body #s4-leftpanel
{
display: none;
}
.s4-ca
{
margin-left: 0px;
}
</style>

In SharePoint 2013, you can do the following to hide Quick Launch:

<style>
.ms-core-navigation { DISPLAY: none }
#contentBox { margin-left: 0px }
</style>

Please note that if you want to do this for all pages within a sub-site – then it would be more preferred to add  above code in the applied master page.


Viewing all articles
Browse latest Browse all 17

Trending Articles