Others

How to Hide SharePoint Online List Navigation for All Users

John WilsonJohn Wilson Oct 12, 2026 870 views

Question details

The user wants to permanently hide the left navigation pane on a specific SharePoint Online list so that it is removed for every visitor accessing that list.

How to Hide SharePoint Online List Navigation for All Users
Product
SharePoint Online
Device & OS
not provided
Scenario
Customizing the layout of a modern SharePoint list to maximize screen real estate and create a cleaner view for all site visitors.
Observed behavior
Modern SharePoint only offers a temporary expand arrow that hides the navigation for the current user's session, and site-wide navigation settings cannot be isolated to a single list.
Before you start

Ensure you have Site Administrator privileges, as implementing permanent changes to SharePoint site designs or deploying custom code requires elevated permissions.

Solution 1Recommended

Use the SharePoint Framework (SPFx) Application Customizer

The only supported method to permanently hide the left navigation for all users on modern pages is to deploy a custom SPFx extension.

Because modern SharePoint pages do not support classic Script Editor or Content Editor web parts, injecting custom CSS directly onto a page is no longer possible natively.

To achieve a persistent, site-wide, or targeted structural change like hiding the left navigation panel, developers must create an SPFx Application Customizer. This extension can inject CSS to hide the navigation elements globally or based on specific list URLs.

1
Set up the development environment

Install Node.js, a package manager, and the Yeoman SharePoint generator (@microsoft/generator-sharepoint) on your local machine.

2
Create the extension

Run 'yo @microsoft/sharepoint' in your terminal and select 'Extension' > 'Application Customizer' to scaffold the project.

3
Inject custom CSS

In your extension's TypeScript file, write code to append a custom CSS file to the page head that targets and hides the '#spLeftNav' (or current modern equivalent) CSS class.

4
Package and deploy

Run 'gulp bundle --ship' and 'gulp package-solution --ship' to generate the .sppkg file. Upload this package to your SharePoint Tenant App Catalog and deploy it to your site.

Developer Knowledge Required: This solution requires familiarity with TypeScript, Node.js, and SharePoint development. For exact DOM element classes, inspect the modern page, as Microsoft occasionally updates structural class names.
Free Microsoft Office alternative

Boost Document Productivity with WPS Office

While SharePoint requires complex development to customize layouts, daily document management shouldn't be complicated. WPS Office provides a lightweight, highly compatible alternative to Microsoft Office for creating, editing, and sharing documents efficiently.

  1. 1. Download the software: Visit the official WPS Office website and click the Free Download button.
  2. 2. Install WPS Office: Run the downloaded installer and follow the quick setup instructions on your screen.
  3. 3. Open and edit files: Launch WPS Office and instantly open your existing Word, Excel, and PowerPoint files without formatting loss.
Seamless compatibility with Microsoft Office formats (DOCX, XLSX, PPTX)Lightweight application with incredibly fast loading timesFree to use with an intuitive, tabbed user interfaceBuilt-in PDF editing tools for streamlined team collaboration
microsoft office alternative - wps office

Frequently Asked Questions

Can I use a Script Editor web part to hide the SharePoint left navigation?

No. The classic Script Editor and Content Editor web parts are not available on modern SharePoint Online pages for security and structural reasons. You must use an SPFx extension instead.

Why does the navigation reappear when I reload the SharePoint list?

The 'Expand content' diagonal arrow only hides the navigation temporarily for your current session. Refreshing the page or navigating away will restore the default layout.

Is it possible to hide the navigation for just one specific list without affecting the rest of the site?

Out of the box, SharePoint Online does not provide a setting to hide navigation for a single list. Navigation settings are managed at the site level. To target a specific list, you must write custom logic in an SPFx Application Customizer.