Friday, August 6, 2010

Removing Sharepoint’s 2010 Left Nav Bar

Most of Sharepoint Page Templates and Masterpages include a left navigation bar. To remove it, we have two options:

  1. Implement a custom master page, or simplier,
  2. Create a (layout) page that removes the master’s nav bar by:
    1. Declaring an empty Content Placeholder for PlaceHolderLeftNavBar
    2. <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"/>

    3. Modifying the div’s styles
    4. <style type="text/css">
          body #s4-leftpanel {display:none;}
          .s4-ca {margin-left:0px;}

Taken from the Kraft and Kennedy blog.

No comments: