October 26, 2010

Now, if you have a public facing SharePoint site and not into the full branding scene, then you might want to remove (actually hide) the ribbon from the top, and remove the All Site Content and Recycle Bin. After a bit of digging and asking questions and learning more than I dreamed, I managed to get these details…

First off, dust off SharePoint Designer 2010, open it up, open your site and load up the Master Page (Master Page section and v4master).
Then, to remove the Ribbon, all you have to do is:

1:     Locate this line:

<div id=”s4-ribbonrow” class=”s4-pr s4-ribbonrowhidetitle”>
2:      Change it to:
<div id=”s4-ribbonrow” class=”s4-pr s4-ribbonrowhidetitle” style=”display:none”
3: Search for <div id=”s4-workspace”> and insert a new line above it. Copy and Paste the following into that blank line.
<Sharepoint:SPSecurityTrimmedControl ID=”SPSecurityTrimmedControl2″ runat=”server” PermissionsString=”AddAndCustomizePages”>
<script type=”text/javascript”>
document.getElementById(“s4-ribbonrow”).style.display = “block”;


Job done for that bit. And even simpler, to remove the All Site Content link and Recycle Bin, do the following:
1: Search for </HEAD> and insert a blank line above. Copy and paste the following into that blank line.


display:none !important;


Job done for that bit. Save the file and you’re good to go. Oh and before I go, there’s another blog that describes how to force the theme onto a public facing sharepoint foundation site that has anonymous access here:
Hope this helps!

You May Also Like…