Friday, December 5, 2014

Hide left navigation using jQuery in SharePoint 2013




In this post we will discuss how to hide left navigation using jQuery in SharePoint 2013.

Also check out:
- Accordion Style Left Navigation using JQuery and CSS in SharePoint 2010

- Upload Excel Data to SharePoint using Import Spreadsheet option in SharePoint 2013

- HTTP Error 503. The service is unavailable error in SharePoint 2013

Put the below code in a script editor web part or content editor web part.

<script language="javascript" type="text/javascript">
ExecuteOrDelayUntilScriptLoaded(retrieveListItemsInclude,'sp.js'); 
function retrieveListItemsInclude()
{
document.getElementById("sideNavBox").style.display='none';
}
</script>

This will hide the left navigation from the page.


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Favorites More