Hide View All Site Content and Recycle Bin in Quick Launch SharePoint 2010: Resolved
19 Oct 2011 15 Comments
in SharePoint 2010 Tags: All Site Content, Content Editor Web Part, CSS, Recycle Bin, SharePoint 2010, SharePoint Foundtaion 2010
When I worked on MOSS 2007 I wrote an article regarding Hide View All Site Content and Recycle Bin in Quick Launch: Resolved and this article is one of the most popular article @ my blog.
But that article was suitable only for MOSS 2007. As there are lots of changes from MOSS 2007 to SharePoint 2010, so that article can’t be applied on SharePoint 2010.
One blog surfer told me regarding this and then i decide to dig out that how will we achieve same thing in SharePoint 2010. So after doing some research I could make it happen in SharePoint 2010. Below are the steps to achieve this:
1. Open Notepad and paste following style inside the notepad file:
<style>
.s4-specialNavLinkList {
display:none;
}
</style>
2. Now save this text file on your system.
3. Open the site where you want to hide Recycle Bin and All Site Content links and upload saved text file in to a document library.
4. After uploading the file click on the name of the file inside document library. Now a dialog box will open and ask for Read Only or Edit Mode.
5. Just select Read Only mode and ok.
6. Text fill will display inside browser. Copy the URL of text file from address bar of browser.
7. No open SharePoint 2010 page where you want to hide Recycle Bin and All Site Content Links.
8. Put Page in edit mode and add a Content Editor Web Part (This web part is inside Media and Content Category in SharePoint 2010) inside the page.
9. Now click on Edit Web Part from context menu.
10. Inside Content Link text box paste the URL u copied earlier in step 6.
11. Click on Ok and you are done.
Happy SharePointing

Oct 19, 2011 @ 11:29:10
Hi.. I still cant get through… As per your blog i did upload the text file. However when i click the name of the file it just opens in the browser directly without giving “read only” or “edit” options. So i just copy the URL as mentioned in the web part content link text box… But no joy… Also besides All Site Content and Recycle Bin is there a way to hide Site Content in quick launch which has links to site assets, style libraray and site pages….
Oct 19, 2011 @ 22:29:24
Well the solution described in this post is tried and tested and i made a POC especially for this. If this is really crucial for you then you can chat with me on my yahoo id i.e. kailashdhondiyal@yahoo.com so that i can guide you step by step . For hiding “site assets, style library and site pages etc.” you need to tell what exactly you need to hide, so that i can check the styles accordingly. One more thing you need to tell that are you using any custom master page for your site or you are using the master pages provided by SharePoint itself.
Nov 03, 2011 @ 00:11:36
This worked great for my SharePoint 2010 site. My only modification is that I placed the TXT file in a document folder within a restricted sub-site and only gave ‘read’ permisions to that file. This way the file was not viewable on the page visitors were accessing, so they could not view it, etc…. Being new to SP2010, I was curious why the above text could not just be entered in the content editor web part directly instead of a separate file? Thanx for the tip!
Nov 03, 2011 @ 10:04:17
Well i saw this too. In MOSS 2007, we could directly write text/script/css inside a content editor web part but in SP2010 we can’t do this directly we have to put this in separate file and then linked that file with content editor. This is a new change in content editor.
Nov 24, 2011 @ 01:09:52
Can this work in 2010 under the HTML Form Editor WP? It has a source editor tool.
Dec 21, 2011 @ 18:33:52
Thanks it works well. Is it also possible to hide “View All Site Content” from “Site Actions” drop down menu?
Jan 17, 2012 @ 23:12:33
This works well but (a) there is still a “blank” column to the left of the screen. How can I remove this so that there is more space for my centre and right columns. And (b) how do I hide the webpart that I created in order to hide the recycle bin and all site content
Jan 20, 2012 @ 11:14:27
(b) Edit web part and under category “Layout” tick box “Hidden”
Jan 20, 2012 @ 14:36:21
This box is greyed out for me.
Jan 24, 2012 @ 18:59:29
AWESOME – This worked perfectly. The only thing I did a little differently was that I inserted a HTML form part and made it hidden. For my purposes that worked out great and eliminated some extra steps
Thanks for the quick tutorial!
Feb 06, 2012 @ 21:40:14
You can hide the content editor web part by
Edit Webpart->Appearance->Chrome Type->None
Feb 07, 2012 @ 13:32:48
Thanks. So they only thing left to tidy up is the now blank left hand space. Is there any way to recover this so that my middle section can use the left hand space too (i.e. start at the left of the page, not 4cm in)?
Feb 10, 2012 @ 22:00:09
Mark, You actually need to hide the Quick Launch (Left navigation area) since you don’t just want to hide the recycle bin and All Site Content. Try this code in your Content Editor HTML source box. I just entered this in and it works perfectly.
body #s4-leftpanel{
display:none;
}
.s4-ca{
margin-left:0px
}
Feb 13, 2012 @ 14:31:44
I tried this code:
body #s4-leftpanel{
display:none;
}
.s4-ca{
margin-left:0px
}
and it hasn’t worked. Any ideas why not?
Feb 11, 2012 @ 02:06:01
Worked great, and I hid the Content Editor Webpart. Now, the only thing is… when a non-member/non-owner access the page, they don’t have permission to run that code and the View All Site Content link is still there….