Tuesday, September 15, 2015

SharePoint 2013 – Hiding Top Office365 bar and ribbon for non-admin users of Sharepoint 2013 site

Hiding Top Office365 bar and ribbon for non-admin users of Sharepoint 2013 site:
 Its very easy! Just follow these simple steps….
  1. Open the site’s Master Page in SharePoint Designer
  2. Find a div with id= “ms-designer-ribbon” – whose content is actually the top ribbon
  3. Set the property for that div to “display:none” – here we are initially hiding it.
  4. Next, find the div called “DefaultContentBlock” , find where that div ends, and below that paste this script code ..
<!––>

  1. Now you can see that the required agenda is working.
  2. Test by logging in using a site owner[who should be able to see the Top bar] , and an anonymous user/low permission user[who will not be able to see the top bar]
  3. Thats it ! 

No comments:

View Tenant (ULS) Logs in SharePoint Online using CSOM

Even though the classes exist in the CSOM, the Microsoft Office 365 Engineering team has confirmed that this is something which is not poss...