When I have a little spare time I like to look at my twitter feed for interesting BLOG posts. Often, if I find a well written article I’ll go back to see what the author has posted in the past. It was this process that caused me to stumble over this year old post by Mark Wagner (How To: Hide/Remove the View All Site Content link in SharePoint.) In the post he talks about using features to deploy custom style sheets, specifically to hide items on a page. While the process would certainly work,I think it’s a little “overkill” for a lot of scenarios, particularly in self service deployments where you want to avoid involving IT where possible. Here’s an alternative approach.

Let’s stick with Mark’s original idea of hiding the “View All Content” link. Create a test.css file and paste the following into it:

#ctl00_PlaceHolderLeftNavBar_idNavLinkViewAll      {display: none}

Save the file and upload it to the style sheet library on the target site, eg http://sharepoint-test/style%20library/. Now visit the site’s admin page and click “Master Page” Under “Look and Feel”.

csstrics_admin

Scroll to the bottom of the page and look for the section which allows you to select a custom style sheet. Click browse, navigate to the style library and select your test.css file. Once you click ok and leave the admin pages, you should see that the “View All Site Content” has gone. csstrics

You’ll notice that in this screenshot I’ve also hidden the recycle bin and the MySite link. Here’s the code you’ll need to replicate this:

#ctl00_PlaceHolderGlobalNavigation_ctl08_hlMySite  {display: none}

#ctl00_PlaceHolderGlobalNavigation_ctl06_hlMySite  {display: none}

#ctl00_PlaceHolderLeftNavBar_idNavLinkViewAll       {display: none}

#ctl00_PlaceHolderLeftNavBar_idNavLinkRecycleBin  {display: none}

Obviosuly this is useful for those of you interested in “look and feel,” but if you’re a support guy, it’s worth bearing this in mind if you get a support ticket for a site that’s “missing parts” or simply acting strange.