Quick launch shows up after migrating to SharePoint 2013 / Script to hide Quick launch

Issue: After migrating from SharePoint 2010 to 2013, some of our landing pages built with Welcome page layout pages, started displaying quick launch. We, for sure, don’t have quick launch for pages in 2010. All the custom page layouts got migrated without any issue.

After some googling I found out that quick launch is mandatory for all the welcome page layouts, or any page layout. If we don’t like the quick launch we should do something extra to hide it. We can easily use a code snippet on the page or create a custom page layout for landing pages.


1. Edit the page
2. Click on add a webpart in any of the available web part zones
3. Add the new Script editor web part which is under Media and Content Category

Quick launch







4. Click on Edit snippet






5. Add the following code snippet to it.

            <style type=”text/css”>
            #sideNavBox {DISPLAY: none}
            #contentBox {MARGIN-LEFT: 0px}

6. Insert, Apply and Save

You can export this web part and import to web part gallery, to easily use it later in any page in that site collection.