SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In SP2013 you have the recent entry in the navigation. Is there an easy way to automatically hide/remove this entry?

share|improve this question
up vote 9 down vote accepted

Did some additional research and found the answer myself.

var title = SPUtility.GetLocalizedString("$Resources:core,category_Recent", null, web.Language);
SPNavigationNodeCollection nodes = web.Navigation.QuickLaunch;
foreach (SPNavigationNode node in nodes)
  if (node.Title.Equals(title))
share|improve this answer
Where did you put this code? I put it in a Feature Event Receiver in the FeatureActivated event, & it didn't work :( – Markus Aug 4 '15 at 15:22

You can manually delete the header from:

Site Settings-> Look and Feel -> Navigation

share|improve this answer
I am creating a webtemplate based on a teamsite. Do you know how this can be done by code? – Remko Mar 7 '13 at 13:20
What is the result you are looking for? Should the navigation be inherited from the parent site? – Vardhaman Deshpande Mar 7 '13 at 14:22
I already found and posted the answer I was looking for. Tnx for helping – Remko Mar 14 '13 at 9:59

I decided as follows: Added the css code on the page that did not want to display the "Recent" menu:

div#zz12_V4QuickLaunchMenu ul#zz13_RootAspMenu li.static span.static span.additional-background{
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.