Hide View All Site Content and Recycle Bin in Quick Launch SharePoint 2010: Resolved


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 🙂

Advertisements

43 thoughts on “Hide View All Site Content and Recycle Bin in Quick Launch SharePoint 2010: Resolved

  1. 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….

    1. 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.

  2. 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!

    1. 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.

    2. Not wanting to tread on anyones toes, but you can put the style code in a content editor web part. Be sure to edit the web part, click in the content zone, then on the ribbon, under the Editing Tools > Format Text area, select the “HTML” drop down and click on “Edit HTML source”. Paste the code in there, and save.

      HTH 😀

      Also, nice one, James, that hides the box left behind after hiding the lower level containers.

      1. I tried what u suggest but when save and close, recycle bin and all site content come back…any idea where is the problem?

  3. 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

    1. 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)?

  4. 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
    }

  5. 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….

  6. @colin What “and”? Do I replace”

    .s4-specialNavLinkList {

    display:none;

    }

    with

    body #s4-leftpanel{
    display:none;
    }
    .s4-ca{
    margin-left:0px
    }

    or do I need to combine the two in some way?

  7. Many thanks Dhondiyals (and Brenda), just what I was looking for. Mark, re hiding quick launch this is what worked for me:

    .s4-specialNavLinkList {
    display:none;
    }
    body #s4-leftpanel{
    display:none;
    }
    .s4-ca{
    margin-left:0px
    }

      1. I tried that but I still have a small rectangle at the top left of my page that is still taking up that space all the way on the left and not allowing my page to shift left.

    1. Thanks so James. This really works and also it hides the little text box (row) that was left behind when I used the first code that was given earlier.

  8. how to remove All Site Content link from SIte Actions? as well as when we click on any other document library at that time All SIte Content is still visible

  9. Great post! I have tried so many other options that people say work that I was about ready to give up until I gave yours a try and it actually worked! Thank you very much for your help!

  10. Wow thank you so much for that walk through, my deadline to launch a site is approaching next week so I’m doing the last minute scramble to tighten things down. Worked perfectly! 🙂

  11. This works great for me. But is there any way to hide “All site content” from Site Actions menu? I also want to hide the name of the Content editor from site. But Hidden option is not working for me.

  12. This is not working for me as when I click save and close recycle bin and all site content reappear (although they r not there when editing the page just after application of the code) any idea where is the problem?

  13. It worked fine for me. However my concern is different.
    I have to disable All site content and recycle bin in my home page but only for a group of people. I have 2 groups. Admin and managers. When Admin logs in, i need these to be visible but when manager logs in, I want them to be hidden.
    Any suggestion is greatly accepted. Thanks in advance!!

  14. Escellent solution. No need to edit the Master Page. Thank you! Do you have a similar approach to hide the ribbon when not logged in?

  15. hi, it worked for me as far as hiding the left navigation, but it is not reclaiming the space. Any ideas? I have used

    .s4-specialNavLinkList {
    display:none;
    }
    body #s4-leftpanel{
    display:none;
    }
    .s4-ca{
    margin-left:0px
    }

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s