Month: January 2014

How to hide “Recent” node in SharePoint Quick Launch

If you like clean quick launch and want to hide the ‘recent’ node from SharePoint 2013 quick launch, here is the code snippet. If it is in one site, you can delete the header manually by going to:
Site Settings -> Look and Feel -> Navigation. But it comes up every time you add a list or library.

var recent = SPUtility.GetLocalizedString("$Resources:core,category_Recent", null, web.Language);
SPNavigationNodeCollection nodes = web.Navigation.QuickLaunch;
foreach (SPNavigationNode node in nodes)
if (node.Title.Equals(recent))