Press ESC to close

SharePoint 2013 – Remove recent in the quick launch

SharePoint 2013 contains a new feature that creates a Recent shortcut in the quick launch. This shortcut appears after creating a new app. One of our customers doesn’t want to use this feature. There is only NO out-of-the-box feature to remove it. Very strange. I asked on SPYAM how to remove the shortcut. I received the following answer from Jussi Roine:

The Recent-section gets added automatically through a WebControl on the page. To automatically remove the who section (including child navigation nodes of Recent) you could enable a custom feature, that simply does a .Delete() against the corresponding navigation node in SPWeb.Navigation.QuickLaunch navigation collection. 

Then just call your custom feature from your provisioning logic, and way Recent -section would always be removed upon provisioning a new site. 
Alternatively you could use some CSS-styling but that wouldn’t really remove it, but just hide.


Hopefully this can set you in the right direction. Thanks Jussi!

Edit


Thanks to my visitors for leaving valuable replies! Another solution is:

jQuery(document).ready(function() {
jQuery
(".ms-core-listMenu-item:contains('Recent')").parent().hide();
});

Jasper Oosterveld

My name is Jasper Oosterveld. I am a Microsoft MVP, Data Security & Microsoft 365 Consultant based in the Netherlands. I’ve spent the last decade helping organizations tackle complex challenges around Governance, Adoption and Data Security with Microsoft Purview. My mission? To empower companies to protect their data and streamline collaboration in Microsoft 365, all while keeping governance and adoption at the forefront.

Comments (14)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.