Wednesday 6 November 2013

Hide Top Level Menu and Ribbon Programmatically in SharePoint 2010

Share it Please
1.create one textfile and then save the below css code  inside the file and then save the file in document library
<style type="text/css">
  #s4-leftpanel-content
{
        display:none;
}
   #s4-ribbonrow
{
        display:none;
}
   #s4-titlerow
{
        display:none;
}
   #s4-workspace
  {
         overflow-y: hidden !important;
  }
</style> 
2.Go to Site Actions create one new page  
3. In Ribbon menu control click the "Text Layout" icon   and choose the "Two Column" and add a content editor web part

4.Once it's added, click the Edit web part and select the above share document in the content link
5.We will see the content editor in our page that's not required to view in page content. We will again edit the content editor web part and set the "Chrome Type" to "None".

6.click ok button we will see the changes

No comments:

Post a Comment

Followers

Follow The Author