In one of my previous projects, users wanted me to hide the Recent items under Quick launch, so this is the approach I followed to achieve the functionality.ms-core-listMenu-item is the css class name that needs to be manipulated.
Steps
- Insert the Content Editor Web Part after editing the page.
- Place the below query code.
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
jQuery(".ms-core-listMenu-item:contains('Recent')").parent().hide();
});
</script>
- Check in the Page
- See the results.