Hide quick launch left navigation from home page in SharePoint 2013 using jQuery

InfoPath alternatives for form designing SharePoint
Recently I got one requirement to hide the left navigation from the Home page, but in other pages the left navigation quick launch should come. And this should be done without using code by using JavaScript or jQuery.
Also check out:
By default left navigation will appear like below:
Hide quick launch left navigation from home page in SharePoint 2013 using jQuery
Hide quick launch left navigation from home page in SharePoint 2013 using jQuery
We need to add the code by using a Script editor web part.
Open the page where you want to hide the left navigation, edit the page and then from the ribbon click on Add web part and from Media and Content and then select Script Editor web part.
Then put the below code:
<script language=”javascript” type=”text/javascript”>
ExecuteOrDelayUntilScriptLoaded(retrieveListItemsInclude,’sp.js’); 
function retrieveListItemsInclude()
{
document.getElementById(“sideNavBox”).style.display=’none’;
}
</script> 
Then Save the page, Now the left navigation will not come like below:
Hide quick launch left navigation from home page in SharePoint 2013 using jQuery
Hide quick launch left navigation from home page in SharePoint 2013 using jQuery

Similar SharePoint 2013 Tutorials

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →

Leave a Reply