Tag Archives: Web Part

SharePoint: Hide View All Site Content and Recycle Bin

Filed under Microsoft, SharePoint

Sometimes it nessary to hide View All Site Content and the Recycle Bin on a SharePoint page. This can be accomplished by using a Web Part, CSS and JavaScript.

Choose Site Actions, Edit Page.

SharePoint Edit Page

SharePoint Edit Page

Add a new Content Editor Web Part(in Miscellaneous) to the page.

Choose Edit, Modify Shared Web Part.

Modify Shared Web Part

Modify Shared Web Part

Put the following two code section into the Source Editor:

.ms-navframe {
  display: none;
<script language="JavaScript">

Choose the OK button and now the View All Contant and Recycle bin should disappear.

Exit Edit Mode to complete.