Hide the Left Navigation Pane on a Modern SharePoint Site Contents Page
Question details
Determine whether the left navigation pane can be hidden on a modern SharePoint Online Site Contents page using a master page or custom code.
- Product
- SharePoint Online
- Device & OS
- not provided
- Scenario
- A site owner wants to remove the left navigation pane from the modern Site Contents page.
- Observed behavior
- Classic master page changes do not provide the same result on modern SharePoint pages.
Confirm that the Site Contents page is using the modern experience and that you have permission to change the site's appearance. Available navigation settings can vary by site type.
Check modern navigation settings and submit feedback
Check whether the site offers a supported navigation option, then request a Site Contents-specific option if needed.
Modern SharePoint does not support custom master pages, custom page layouts, or custom JavaScript in the same way as classic SharePoint. Changing from the Seattle master page to Oslo may affect a classic site, but it is not a solution for the modern Site Contents page.
On the SharePoint site, select Settings (the gear icon) > Change the look, then look for Navigation.
If a site navigation visibility option is available, review it and test its effect on Site Contents. The option may vary by site type and does not guarantee that the pane will be hidden on that page.
Open the Microsoft Feedback portal, find the SharePoint feedback area, and submit a request to hide left navigation specifically on the modern Site Contents page.

Work with Office documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Office formats, making it easy to move everyday document work. It does not manage SharePoint navigation or change the Site Contents page.

Frequently Asked Questions
Can I switch to the Oslo master page to hide navigation on a modern Site Contents page?
No. Switching from Seattle to Oslo may hide navigation in a classic site, but modern SharePoint does not use custom master pages in the same way.
Where can I check whether my site can hide navigation?
Select Settings > Change the look > Navigation on your SharePoint site. Available options depend on the site type, and a visibility setting may not hide navigation on Site Contents.
Can an SPFx extension reliably hide the Site Contents navigation?
SPFx offers supported extension points, but directly manipulating the SharePoint page DOM to hide navigation is not a reliable, supported customization. Ask the SharePoint community for guidance on your specific scenario.
How can I request a supported option for hiding the pane?
Use the Microsoft Feedback portal's SharePoint feedback area to request a navigation visibility option for the modern Site Contents page.




