Hiding SharePoint 2013 Recent Menu on Left Hand Navigation

Every product has useless features. SharePoint isn’t an exception. There are various features like pesky “default send an email option while sharing sites with the users.” Every one of us has invited “everyone” and left that check box on to send an email to all 40,000 people in the organization in one lifetime or other. Another big one is annoying “recent” menu option added every time someone adds new document library or app in the left-hand navigation.

Hiding “Recent” Menu is one of those features I have to tackle every time I have to design custom UI for the SharePoint especially for the Intranets. Although this is well documented on the MSDN, this is a self-note for me.

Plan to have this in master Custom JavaScript file which gets called from the master pages or page layouts (if there are no custom master page). Please note this code requires jQuery loaded before this javascript.

Here is the code from Master Page.

<head runat="server">

<!-- jQuery -->
<script type="text/javascript" src="<asp:Literal runat='server' Text='<%$SPUrl:~sitecollection/Style Library/App/SiteBranding/Scripts/jquery-1.10.2.min.js%>' />"></script>
<!-- Main App JS-->
<script type="text/javascript" src="<asp:Literal runat='server' Text='<%$SPUrl:~sitecollection/Style Library/App/SiteBranding/Scripts/app-master.min.js%>' />"></script>


Here is the code from app-master.js

(function (window) {
$(document).ready(function () {

//hide annoying recent menu items- https://social.technet.microsoft.com/Forums/office/en-US/b0b126fb-298b-469a-9a35-fb7abd50b997/sharepoint-2013-remove-recent-from-left-menu?forum=sharepointadmin


Hope this saves someone time. As I mentioned above, this is reference article for me rather than researching again.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

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

Google photo

You are commenting using your Google 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 )

Connecting to %s