How to Hide View All Site content & Recycle Bin Links in SharePoint 2010/2007?

Another frequently asked question: How to Hide the Recycle Bin & View all Site content links in SharePoint site? Yes, we can hide them, not a big deal!

How to hide View All site content, Recycle Bin Links in SharePoint

Here is how to hide View All Site Content and Recycle bin links from SharePoint 2007 left navigation. Just add the Content Editor Web part and place the below CSS codes (Add it in Master page if you want to apply for all sites) :

Hide View all site content & Recycle Bin Links in SharePoint 2010:
 CSS classes are a little different.

/*To Hide both */
.s4-specialNavLinkList
{
   display:none;
}

/* To Hide Recycle bin */
.s4-rcycl
{
   display:none;
}

/* To Hide "All Site Content" */
#ctl00_PlaceHolderLeftNavBar_PlaceHolderQuickLaunchBottom_PlaceHolderQuickLaunchBottomV4_idNavLinkViewAllV4
{
   display:none;
}

In Action:

Hide view all site content & Recycle Bin from SharePoint

Yes, You can set the permission string of these links to hide it from all users except the specified in PermissionString property.  Open your master page in SharePoint designer (either MOSS 2007 or SharePoint 2010).  In Design view select “All Site content Link” in Tag Properties, Go to PermissionString and Enter the permission string. Say, you want this link to be available only to Site owners, then enter: “FullMask”

Hide Recycle Bin & View all site content from quick launch

You can use: SPSecurityTrimmedControl also to hide All Site Content or Recycle Bin Links from anonymous user. 

Salaudeen Rajack

Salaudeen Rajack - SharePoint Expert with Two decades of SharePoint Experience. Love to Share my knowledge and experience with the SharePoint community, through real-time articles!

2 thoughts on “How to Hide View All Site content & Recycle Bin Links in SharePoint 2010/2007?

Leave a Reply

Your email address will not be published. Required fields are marked *