Skip to main content

How to hide ribbon row when enabling anonymous access in SharePoint 2010

enable anonymous access to your site the ribbon row will appear for anonymous users but without "site actions" menu and it will be "Login" link but if you need to hide all this row you have to do the following
1- Open your masterpage with SharePoint designer
2- Find the ribbon row Search on "ribbonrow"
3- before the div that holds the ribbon add this tag

<sharepoint:spsecuritytrimmedcontrol id="SPSecurityTrimmedControl2" runat="server" permissionsstring="ManageSubwebs">



4- after the end of the ribbon div close the security tag
</sharepoint:spsecuritytrimmedcontrol>

Comments

Popular posts from this blog

SharePoint 2010 Branding: Change site actions and welcome menu arrows

Here's how you can do it. Hide the image and give our custom image element a background image. Look Like: .ms-viewselector-arrow {     background: transparent url('/PublishingImages/images/Arrow.png') no-repeat scroll 0 0;     height: 4px; /* height of the image */     width: 5px; /* width of the image */ } .ms-viewselector-arrow img {     display: none; }